View Full Version : Data Transfer Between Windows

Mr J
08-19-2002, 11:47 PM
Having two popup windows and a main window how is it possible to tranfer data from the main window into the popups and possibly from the popups to the main window.

08-19-2002, 11:48 PM
Depeding on the type/nature/quantity of data, you have limited options. Using cookies may be the best way.

What are you trying to accomplish?

Mr J
08-19-2002, 11:51 PM
I require that the results from a number generator are viewed in a popup

08-19-2002, 11:54 PM
Well, if you are calculating the value in opener, you can pass the value to the popup with the query string (or search string)
var randNum = Math.floor(Math.random() * 100); // Or whatever
var nUrl = 'popup.htm?' + randNum;
window.open(nUrl,'',''); then, in the popup, get the number like this
var randNum = parseInt(top.location.search.substring(1));

Mr J
08-19-2002, 11:58 PM
I will work on that.

Thank You :thumbsup: