Hi All I am trying to use modal dialog box in my code. like
window.showModalDialog('pageurl');
Ideally when a modal dialog box is open one should not be able to go to parent window until i开发者_C百科t is closed.
it is working fine with Mozilla. But in Chrome the one can take control to parent window even if it is open.
Can anyone tell why the problem is occuring? And please help me solving this problem. I t is necessary for me to show same type of modal dialog box in Chrome.
window.showModalDialog(''pageurl);
Can not really be "modal" with Chrome, it's just made like this.
You have to implement your own modal box using JavaScript / JQuery Example Demo
I suggest you step away from showModalDialog
and use a LightBox variant. That gives you more control over what you want and is more XB (cross browser).
精彩评论