This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > March 2004 > TIP: Form item to be selected on page load





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author TIP: Form item to be selected on page load
neilsytner

2004-03-31, 11:34 am

simply put this above your <form ...> tag:

<script language="javascript" type="text/javascript">
<!--
window.onload = select_me;
function select_me() {
focus();Form.Input.focus()
}
//-->
</script>

replace 'Form' with the name of your form and replace 'Input' with the name of
the input field you want selected.

that's it!

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews