Name

dialogArguments — NN n/a IE 4 DOM n/a

Synopsis

Read-only

String or other data type passed as extra arguments to a modal dialog window created with the showModalDialog( ) method. This property is best accessed by a script in the document occupying the modal dialog 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

var allArgs = window.dialogArguments
var firstArg = allArgs.substring(0, allArgs.indexOf(";"))

Value

String, number, or array.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.