469,325 Members | 1,617 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,325 developers. It's quick & easy.

Set Focus to a button in login page on Enter key pressed

how to Set default Focus to a button in login page that contains more that two button on Enter key pressed in Mozilla. Control.focus() working in IE but not in Mozilla

Can any one help me down how to do this in mozilla.

i want this in ASP.NET 1.1
Apr 5 '07 #1
1 2078
acoder
16,027 Expert Mod 8TB
Instead of Control.focus(), use document.getElementById(buttonID).focus() where buttonID is the ID of the button that you want to give focus to.
Feb 5 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

17 posts views Thread by Neil Ginsberg | last post: by
2 posts views Thread by JP | last post: by
3 posts views Thread by Philip Townsend | last post: by
2 posts views Thread by Rocio | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.