JScript and multiple windows
Hey everyone, it is the coder that likes try and code web pages like native windows apps hehe. Anyway, I am working on a fancy little asp.net 2.0 page for laptop chekcouts and I want to be able to say from a popup window transfer data via jscript from the fields in the popup window to the parent window. Basically, here is an example of one way I can do it but instead of me having to do another event on the parent page to read the data, I want the event to run on the popuyp page and transfer the data to the parent. maybe this will make more sense.
Here is one way I know to do it.
var newwindow;
function pageOpenRead()
{
newwindow = window.open("Popup.htm");
document.getElementById("txtOutput").value =
newwindow.document.getElementById("txtInput").valu e;
}
Basically this is how I would do a popup page and I have a reference to the new window but from the new window I do not know the reference back to the parent so i can only really write code fro mthe parent to the popup using the reference while in the popup I do not have one or do not know the reference back to the parent.
|