How could i pass some data to my window.open() ?
For example:
I am in site1.com
and using
window.open("http://site2.com");
The questing is - how to crossbrowser pass some data via js to that site1.com
How could i pass some data to my window.open() ?
For example:
I am in site1.com
and using
window.open("http://site2.com");
The questing is - how to crossbrowser pass some data via js to that site1.com
The easiest way to pass data between pages is to build a query string like this:
window.open("http://site2.com?parameter1=foo¶meter2=bar&etc=whatever");
When one page opens another the function window.opener() can return values to a particular function in the opening page. Look it up for details. I don't have a development box in front of me so its difficult to show good examples. I know I've done it this way in the past. Like a popup allowing choices to be made by user then close child form and pass choice back to parent form.