Dialog handling in JavaScript
Related objects:
Object | Support | Description | |||||
---|---|---|---|---|---|---|---|
popup | Represents the window object of a popup box created with the createPopup method. |
Related properties:
Property | Support | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
closed (window) |
Returns a Boolean value that indicates whether the window is closed or not. | |||||||||||
dialogArguments (window) |
|
Returns a variable that was passed as an extra argument to a modal dialog window created with the window.showModalDialog or window.showModelessDialog method. | ||||||||||
dialogHeight (window) |
Specifies or retrieves the height of the dialog window. | |||||||||||
dialogLeft (window) |
Specifies or retrieves the left position of the dialog window. | |||||||||||
dialogTop (window) |
Specifies or retrieves the top position of the dialog window. | |||||||||||
dialogWidth (window) |
Specifies or retrieves the width of the dialog window. | |||||||||||
document (popup) |
Returns a reference to the document object in a popup window. | |||||||||||
isOpen (popup) |
Returns a Boolean value that indicates whether the current popup window is displayed. | |||||||||||
returnValue (window) |
|
Specifies or retrieves the value returned from a modal dialog window. |
Related methods:
Method | Support | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
alert (window) |
Displays an alert window with the specified message and an OK button. | |||||||||||
close (document) |
Closes the output stream opened by the write method and flushes the output buffer to the screen. | |||||||||||
close (window) |
Closes the current window. | |||||||||||
confirm (window) |
Displays a confirmation dialog with a message that the user needs to respond to. | |||||||||||
createPopup (window) |
Creates a popup window object. | |||||||||||
hide (popup) |
Closes the current popup window. | |||||||||||
print (window) |
Prints the contents of the current window. | |||||||||||
prompt (window) |
Displays a prompt dialog with a message, an input field, an OK and a Cancel button. | |||||||||||
show (popup) |
Displays the current popup window. | |||||||||||
showHelp (window) |
Opens a HTML help (.chm or .hlp) file in an external application. | |||||||||||
showModalDialog (window) |
|
Creates a modal dialog and loads the specified document into it. | ||||||||||
showModelessDialog (window) |
Creates a modeless dialog and loads the specified document into it. |
User Contributed Comments