Thursday, October 5, 2023
 Popular · Latest · Hot · Upcoming
167
rated 0 times [  171] [ 4]  / answers: 1 / hits: 31341  / 15 Years ago, wed, april 8, 2009, 12:00:00

What are situation when you want to use window.showModalDialog function? It seams that you can do exactly the same with window.open function and few parameters that remove some of the chrome (navigation, addressbar, etc...)



When would you want to use window.showModalDialog and window.open?


More From » javascript

 Answers
38

Modal dialogs are dialogs that once opened by the parent, do not allow you to focus on the parent until the dialog is closed.



One could use a modal dialog for a login form, edit form, etc where you want to have a popup for user interaction but not allow the user to return to the window that opened the popup.



As a side note, I believe only Internet Explorer implementes window.showModalDialog, so that kind of limits your usage of it.


[#99732] Thursday, April 2, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hugo

Total Points: 21
Total Questions: 120
Total Answers: 107

Location: Belarus
Member since Tue, Jul 20, 2021
2 Years ago
;