showing results for - "javascript open new window and pass data"
Alexandra
24 Jan 2017
1// Store the return of the `open` command in a variable
2var newWindow = window.open('http://www.mydomain.com');
3
4// Access it using its variable
5newWindow.my_childs_special_setting = "Hello World";
6
7//In the child (popup) window, you could access a parent variable like this:
8window.opener.my_parents_special_setting