Javascript Reference
Categories: window

javascript window dialogArguments

@March 21, 2009, 8:34 a.m.
dialogArguments Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

 

Read-only  

This is the string or other data type passed as extra arguments to a modal dialog window created with the window.showModalDialog( ) or (in IE 5 and later for Windows only) window.showModelessDialog( ) methods. This property is best accessed by a script in the document displayed in the dialog window in order to retrieve whatever data is passed to the new window as arguments. It is up to your script to parse the data if you include more than one argument nugget separated by whatever argument delimiter you choose.

 
Example
 
// in dialog window
var allArgs = window.dialogArguments;
var firstArg = allArgs.substring(0, allArgs.indexOf(";"));
 
Value

String, number, array, or object.

 
Default

None.

Dear gakaa.com webmaster, Your posts are always well-referenced and credible.
Pearl Salier - 1 weeks
Thanks for the help!!
Anon - 2012-05-19

Powered by Linode.