471,887 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

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 2119
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.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.