Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: RE: javascript_howto digest: December 15, 2001


Message #1 by "Baran, Greg" <gbara@a...> on Mon, 17 Dec 2001 08:50:01 -0600
Hi!

For focus I use this one:
<body topmargin=0 leftmargin=0
onLoad='javascript:document.all["html_element_name_here"].focus("true")'>

Greg

-----Original Message-----
From: JavaScript HowTo digest [mailto:javascript_howto@p...]
Sent: Saturday, December 15, 2001 6:02 PM
To: javascript_howto digest recipients
Subject: javascript_howto digest: December 15, 2001


-----------------------------------------------
When replying to the digest, please quote only
relevant material, and edit the subject line to
reflect the message you are replying to.
-----------------------------------------------

The URL for this list is:
http://p2p.wrox.com/list.asp?list=javascript_howto

JAVASCRIPT_HOWTO Digest for Saturday, December 15, 2001.

1. document object, compatibility[IE,NN],radio button grp

----------------------------------------------------------------------

Subject: document object, compatibility[IE,NN],radio button grp
From: "George Tatar" <gathome@s...>
Date: Sat, 15 Dec 2001 21:46:52
X-Message-Number: 1


what is the best way to set focus and select a radio button from groups of 
radio buttons on a form, that both netscape and IE will recognize,
The following works in Netscape but not Explorer,

document.forms[1].elements[rbname][rbindex].focus();
document.forms[1].elements[rbname][rbindex].select();
rbname is the name of the radio button group
rbindex is the index number i want to select of the group

any suggestions would be appreciated

Thank you


---

END OF DIGEST

$subst('Email.Unsub').

  Return to Index