RE: Directing Focus

by Chuck Evans <Chucke(at)captura.com>

 Date:  Thu, 23 Mar 2000 12:13:38 -0800
 To:  "'Franklin,
Douglass'" <Douglass.Franklin(at)ssa.gov>,
"'HTML Writer's Guild'" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
In the head section of your document, put:

<script language="JavaScript">
<!--hide the script

function fieldFocus(){
	document.formname.fieldname.focus();
}

// -->
</script>

And in the body tag, add:   onLoad="fieldFocus()"

Make sure you replace "formname" with the actual name of your form and
"fieldname" with the actual name of the field you want to give focus to.

---------------------------------------------------------
Chuck Evans
Web Marketing Manager
Captura Software, Inc.
(425) 424-1155
chucke(at)captura.com
www.captura.com

-----Original Message-----
From: Franklin, Douglass [mailto:Douglass.Franklin(at)ssa.gov]

Thanks to all the helpful people on this list - you're all SO awesome.  Is
there a way to direct the focus to a form element?  It would great to make
this element the initial element for the user to input.

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.