I have a page which spawns a popup browser window. I have a JavaScript variable in the parent browser window and I would like to pass it to the popped-up browser window.
Is there a way to do this? I know this can be done across frames in the same browser window but I'm not sure if it can be done across browser windows.
Best Answer
Putting code to the matter, you can do this from the parent window:
or this from the new window:
I prefer the latter, because you will probably need to wait for the new page to load anyway, so that you can access its elements, or whatever you want.