Pass array to Window
can we pass an array to window.openDialog or window.open in javascript?开发者_高级运维
I know that we can pass parameters, but can this be an array?
yes we can ...
...window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The optional parameters, if present, will be bundled up in a JavaScript Array object and added to the newly created window as a property named window.arguments. They may be referenced in the JavaScript of the window at any time, including during the execution of a load handler. These parameters may be used, then, to pass arguments to and from the dialog window.
精彩评论