RE: Ayuda

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

 Date:  Thu, 9 Mar 2000 15:17:11 -0800
 To:  hwg-techniques(at)hwg.org
  todo: View Thread, Original
I'll take a stab at this, even though I don't read Spanish. (I used the
Altavista Babelfish translator, which returned a jumbled sentence. And, FYI,
I sent an equally mangled translation of my email directly to the person who
asked the question, with apologies for my bad Spanish.)

My guess is that you want to be able to give focus to a particular form
field when the HTML page loads. Here's how you can do it:

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.

I hope this helps.

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


-----Original Message-----
From: Patricio Iturra R. [mailto:pitur001(at)pinhue.ufro.cl]
Sent: Thursday, March 09, 2000 9:03 AM
To: hwg-techniques(at)hwg.org
Subject: Ayuda


Hola 
Como puedo dar el focus a un elemento de un form Html, no dandolo desde el
Body Html
 Gracias.

HWG hwg-techniques 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.