Hi Dave,

This has worked for me...

<script language="Javascript">
   <!--
  function cursorForm() {
    window.document.formName.fieldName.focus()
    return true;
  }
-->
</script>

<body onLoad="cursorForm()">
</body>

----- Original Message -----
From: David Hannum <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 8:13 AM
Subject: OT: JS Question


> Hello,
>
> Is there a way to force the focus to a form field (text field) onLoad?
>
> Thanks,
> Dave
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to