How do I pass a variable to a new window that I am going to create?
Printable View
How do I pass a variable to a new window that I am going to create?
thats a toughie. theres likely a much easier and more logical way... but i'd make a cookie. cookies are good brain food and would probably help you think of a way to pass variables to a new window.
Can't you use a querystring in the url parameter for window.open ?
Can you explain how to use the queryunload parameter? I cant use cookies, I dont want them to able to change the value.
think this'll work?
window.open(URL+"?varName="+varContent...)
new window onLoad=function()
{
eval(document.location.split("?")[1].split("=")[0])=document.location.split("?")[1].split("=")[1];
}