Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Javascript
I have a modal popup and in it there is a button. In Mozilla 17.0.1 i cant get focus on the button while modal popup is loaded. I get focus on button in IE9 and Chrome22
Posted 17-Dec-12 22:10pm
CSR89508
Comments
AshishChaudha at 18-Dec-12 3:54am
   
what you have done so far?? please elaborate your question.
Avinash_Pathak at 18-Dec-12 6:26am
   
what you want exactly???
Ramdas.C.S at 18-Dec-12 6:50am
   
Actually in mozilla 17.0.1 focus is not highlighting for the button inside modal popup.
But there is no isue for chrome22 and IE( for the same modal popup.
This issue exists for the radio button focus also.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Use this focus() method to set focus for your button.
 
document.getElementById("btnId").focus();
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150326.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100