You can do this using jQuery I believe.

www.jquery.com

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Brad Wood [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 26, 2006 2:27 PM
To: CF-Talk
Subject: HTML focus


Does and HTML element have an attribute which will tell you if it has
focus?



Ex:

If(document.getElementById('test1').focus == true)

{ ... }



Also, does the document object have a method which will tell you the
current focused element?



Ex:

var elem = Document.getFocusedElement();

alert(elem.id + ' has focus.');



Thanks.



~Brad





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265068
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to