admin管理员组

文章数量:1328765

Response To: Opening Popup Window is not working in firefox and google chrome

Hi,I have similar code in above question.My code works fine in IE.

this.parent.window.showModalDialog('Counter.aspx', '', 
'dialogHeight:170px;dialogWidth:150px;status:no;scroll:no;edge:sunken;toolbar:0;center:on;help:off;unadorned:yes;');

What can i do about this code in order to open this window in Google Chrome browser ?

Thanks for any assistance
Myra

Response To: Opening Popup Window is not working in firefox and google chrome

Hi,I have similar code in above question.My code works fine in IE.

this.parent.window.showModalDialog('Counter.aspx', '', 
'dialogHeight:170px;dialogWidth:150px;status:no;scroll:no;edge:sunken;toolbar:0;center:on;help:off;unadorned:yes;');

What can i do about this code in order to open this window in Google Chrome browser ?

Thanks for any assistance
Myra

Share Improve this question edited May 23, 2017 at 12:01 CommunityBot 11 silver badge asked Sep 3, 2010 at 11:03 MyraMyra 3,6563 gold badges39 silver badges47 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

showModalDialog works in chrome(its not truly modal though). the problem could be that it is blocking them. Chrome's minimalistic design doesnt even tell you that some times. try adding an exception for you current website.

you can find it under -

Options->Under The Hood Tab-> Content Settings Button -> Popups Tab -> Exceptions button

本文标签: javascriptOpening modal dialog window is not working in ChromeStack Overflow