Click here to Skip to main content
12,303,940 members (70,708 online)
Rate this:
 
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 21:10pm
CSR89511
Comments
AshishChaudha 18-Dec-12 3:54am
   
what you have done so far?? please elaborate your question.
Avinash_Pathak 18-Dec-12 6:26am
   
what you want exactly???
Ramdas.C.S 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160530.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2016
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