Posted By

dottDesign on 03/01/11


Tagged

textmate formhtmljavascript


Versions (?)

Auto Clear Form on Page Refresh


 / Published in: Other
 

  1. <script language="javascript">
  2. window.onload=function() {
  3. document.forms[0].reset();
  4. placeFocus();
  5. }
  6. function placeFocus() {
  7. document.forms[0].elements[0].focus(); // assuming the first element
  8. }
  9. </script>

Report this snippet  

You need to login to post a comment.