[thelist] JavaScript focus & getElementByID

Mike Stenhouse Mike.Stenhouse at spiritsoft.com
Wed Jan 15 09:30:01 CST 2003


The .obj property of your getObj class stores the reference to the
element so you want x.obj.focus() ...

HTH

Mike

-----Original Message-----
From: Martyn Haigh [mailto:martyn.haigh at virgincosmetics.com]
Sent: 15 January 2003 15:12
To: 'thelist at lists.evolt.org'
Subject: [thelist] JavaScript focus & getElementByID


<snip>


I have this input element
<input type="checkbox" id="KnowMore" name="KnowMore" value="True" />


And I have this JS Code :

	x = new getObj('KnowMore');
	x.focus();

but it just comes up with an error on the focus line.

Can anyone see where I'm going wrong.

</snip>

This message contains confidential information and is intended only for the named individual and may not be disseminated without prior permission.  If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, delayed in transmission, incomplete, or may contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this Message which arise as a result of e-mail transmission.  If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any software or services.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. http://www.messagelabs.com
________________________________________________________________________



More information about the thelist mailing list