Hi There, I have a place where I keep all my js functions.
One of may functions launches (user requested) popups.
I am trying to write a function that I can call from any one of the popups that tells the parent window to go to a url and the closes the pop_up.
Eg I would just include a working function like this in my inclded functions:
function GoToAndClose(theURL){
// main window go to url
window.opener=self;
window.opener.location.href=theURL;
//close the popup
this.close();
}
Naturally - the above donen't work on any browser...
Please advise...
M@)
One of may functions launches (user requested) popups.
I am trying to write a function that I can call from any one of the popups that tells the parent window to go to a url and the closes the pop_up.
Eg I would just include a working function like this in my inclded functions:
function GoToAndClose(theURL){
// main window go to url
window.opener=self;
window.opener.location.href=theURL;
//close the popup
this.close();
}
Naturally - the above donen't work on any browser...
Please advise...
M@)