Script Categories













Page Details >>> Focus Onload.

You can easily put the user's cursor inside a text box (calling giving the text box focus) as soon as the page is loaded. This helps ensure that visitors do not overlook an important form item on your site.

Name:

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
function Go()
{
    document.nameform.user.focus();
}
window.onload=Go;
</script>
<center>
<form name="nameform">
Name:  <input type=text name=user size=10>
</form>
</center>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

online casino in Canada


©