Published
- 1 min read
javascript open new window and pass data
The solution for this is noted below
javascript open new window and pass data
Solution
// Store the return of the `open` command in a variable
var newWindow = window.open('http://www.mydomain.com')
// Access it using its variable
newWindow.my_childs_special_setting = 'Hello World'
//In the child (popup) window, you could access a parent variable like this:
window.opener.my_parents_special_setting
Try other methods by searching on the site. That is if this doesn’t work