N
nick
I have the following code to open a popup window and pass a value.
In the main html page:
var w = window.open("popup.htm","","width=510,height=450");
w.itemIndex = 100; // alert(w.itemIndex) will show 100
The popup window will be openned. However,
in the popup.htm, javascript code
alert(this.itemIndex) shows 'undefined', while it shows right value (100 in
this example) in Firefox, IE.
How to pass value when using Safari?
Thanks.
In the main html page:
var w = window.open("popup.htm","","width=510,height=450");
w.itemIndex = 100; // alert(w.itemIndex) will show 100
The popup window will be openned. However,
in the popup.htm, javascript code
alert(this.itemIndex) shows 'undefined', while it shows right value (100 in
this example) in Firefox, IE.
How to pass value when using Safari?
Thanks.