BounceFish 

Website Solutions
Search
      home solutions clients resources faqs contact us  
  See our portfolio under the solutions section.

Resources - For Developers

Back to Resources For Developers Homepage

================OPTION 1 - ADD THE ONLOAD BELOW INTO BODY TAG===========================
<body onload="document.formname.fieldname.focus()" >

<!--change the formname and fieldname as needed-->
================OPTION 1 - ADD THE ABOVE ONLOAD INTO BODY TAG===========================

================OPTION 2 - ADD THE CODE BELOW, BELOW YOUR FORM===========================
</FORM>

<script language="JavaScript"> document.forms[0].field1.focus(); </script>

<!--where "field1" is the name of the form element you want to be the focus, change this as needed for your form-->
================OPTION 2 - ADD THE ABOVE, BELOW YOUR FORM TAG===========================

    INSTRUCTIONS
  • Option 1 - Add the code into your opening body tag
  • Option 2 - Add the code immediately after your </FORM> tag

    DESCRIPTION
  • This allows the user to type into a particular field after the page loads.

 

Copyright © 2003-2012. BounceFish Web Design. All rights reserved.