Reputation: 269
I need a truly modal dialog to run in Google Chrome in Windows using extension, where the dialog doesn't allow users to click on other tabs etc. The search results so far seem to suggest that showModalDialog()
doesn't give a true modal dialog, and the jQuery examples (like SimpleModal) don't seem to be able to stop users from accessing the other tabs or the other parts of the browser.
Alerts seem to be be working, so I was wondering if there is any other solution to this problem? Or do I really need to write a modal dialog from scratch using Javascript?
Using the hidden div methods in the web pages is not an option because I can't modify them.
Upvotes: 0
Views: 3196
Reputation: 3929
You can simply use the native javascript function confirm But I don't like when I can't do what I want without good reasons. Furthermore, the user will can always switch to another Chrome window.
Upvotes: 1
Reputation: 47913
No sort of in tab HTML modal dialog will prevent a user from switching tabs. Even alert
will allow users to switch tabs. You may be able to achieve this through a NPAPI plugin though.
Upvotes: 0