javascript window showModalDialog( )
showModalDialog( ) | It works on all browsers. | ||||||||||||||||||||||||||||||
showModalDialog("URL"[, arguments[, "features"]]) |
|||||||||||||||||||||||||||||||
Displays a special window that remains atop all browser windows until the user explicitly closes the dialog window. This kind of window is different from the browser windows generated with the window.open( ) method. A modal dialog has no scriptable relationship with its opening window once the dialog window is opened. All values necessary for displaying content must be in the HTML document that loads into the window or be passed as parameters. The modal dialog may then have a script set its returnValue property, which becomes the value returned to the original script statement that opened the modal dialog box as the returned value of the showModalDialog( ) method. |
|||||||||||||||||||||||||||||||
You can pass arguments to the modal dialog by creating a data structure that best suits the data. For a single value, a string will do. For multiple values, you can create a string with a unique delimiter between values, or create an array and specify the array as the second parameter for the showModalDialog( ) method. A script in the document loaded into the modal dialog can then examine the window.dialogArguments property and parse the arguments as needed for its scripting purposes. See the dialogArguments property for an example. |
|||||||||||||||||||||||||||||||
The third optional parameter lets you set physical characteristics of the dialog window. These characteristics are specified in a CSS-style syntax. Dimensions for dialogWidth, dialogHeight, dialogLeft, and dialogTop should be specified in pixels. An example of a call to a modal dialog is as follows: var answer = window.showModalDialog("subDoc.html",argsVariable, "dialogWidth:300px; dialogHeight:200px; center:yes"); |
|||||||||||||||||||||||||||||||
None of the third parameter characteristics are recognized by the Macintosh version of Internet Explorer 4, which creates a full-size modal dialog. |
|||||||||||||||||||||||||||||||
Modal dialogs can present problems for scripts if the window loads a frameset. A script in one of the frames will likely not be able to reference the parent or top window to gain access to either the window's close( ) method or content in another frame. |
|||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
Returned Value | |||||||||||||||||||||||||||||||
The value (if any) assigned to the window.returnValue property in the document loaded into the modal dialog window. |
Our contact form targeting service sends your message right to site admins and key players, making sure you stand out!
Reach 100M sites with prices starting from just $19 only.
Let’s get your brand the attention it deserves today!
’’’’ Order: https://bit.ly/formblasts
Whenever you prefer not to get subsequent communications from this address, just follow the attached link: https://bit.ly/plsremoveus
Corso Vittorio Emanuele 87, Giuncarico, NY, USA, 58020
Unleash the potential of bulk contact form submissions with our services. Reach millions of website owners daily and experience immediate results. We can submit up to 1 million messages per day, driving:
+ Targeted Traffic
+ Qualified Leads
+ New Clients
+ Increased Purchases
Take advantage of our service now! Starting from $9.
++ Visit: https://bit.ly/formmesages
If you want to unsubscribe from this list and all future emails, please fill the form at https://bit.ly/unsubscrme
Stackekarr 45, Logdea, NA, Sweden, 914 02
Powered by Linode.
I need your help with a problem I've got. I messed up with a young girl and now she's upset with me. I know I was in the wrong and I want to fix it. Can you help me figure out what to do?
I'm willing to pay for your time and expertise. Please call me as soon as you can.
My Whatsapp: +353877761357
My phone: +17852122012
My email: anguslevie@gmail.com
Thanks,
Angus