title: can a javascript "alert" be written in python
body: <p>This question is really a follow on to <a href="https://stackoverflow.com/questions/11835306/404-error-passing-a-alert-sentence-from-python-to-html-page-but-no-error-for">this question</a></p>
  
  <p>In python how can I make an html alert template know where it came from so it will return there, without making a different template for each exception?</p>
  
  <hr>
  
  <p>I was thinking too much about the javascript "alert" which initiates in the html template, not in the python code. My "alert" starts in the python code itself, so I can just pass a "hidden" variable value to the template which tells where to return and capture that "hidden" value with the "def post" part of the python code. </p>
  
  <p>No, this is still not quite complete. Do I have to import and use that urllib stuff, also?</p>