I am trying to use window.open() to pass along some arguments to another page.
window.open()
I want the page to be
myPage.html?img=1.jpg
myPage.html should exist, and check the docs on window.open
to pass vars:
var variable = "lol"; var w = window.open("http://example.com"); w.variable = variable;
or yopu can visit the opeing window:
var variable = window.opener.variable;