title: Android browser: Some javascript functions stop working randomly
body: <p>I am writing an android (2.2) app which launches the default native web browser via a new Intent to a page I've created.  On that page, it pauses for 2 seconds before then submitting a form, which redirects the user to another page.</p>
  
  <p>I am using javascript's setTimeout() function.</p>
  
  <p>It works most of the time, but then sometimes it just stops working, and won't work again until I restart the phone!</p>
  
  <p>There are NO javascript errors which appear in LogCat.</p>
  
  <p>Even stranger, to counteract this I put a link on the page that says "If the page has not redirected in 5 seconds click here".  It submits the form when clicked, via onClick() and .submit().  Well, again, it usually works, but, when the setTimeout() function stops working, so does the link!  But, I have confirmed that alert() still works, so some javascript functions apparently still work.</p>
  
  <p>Any ideas why setTimeout() and .submit() would just randomly stop working, until the phone is reset?</p>
  
  <p>EDIT:  I've also confirmed that window.location doesn't work anymore either, but, if you just have a regular link, it does actually let you click on it, and it leaves the page.</p>
  
  <p>EDIT:  It appears that you can get this problem to happen more quickly if you hit STOP and REFRESH a few times while waiting for the setTimeout to fire off.  Basically if I hit stop, then refresh, then stop, then back, etc, a couple times, I can get this problem to happen.  After it starts, no amount of refreshing or killing/restarting the browser will make these javascript functions start working again.</p>
  
  <p>Thanks!
  Richard</p>