Forum Moderators: open
function popUp(url,h,w)
{
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var title = "POPPING UP NOW";
var newWindow = window.open (url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
function Redirect()
{
window.opener.location="http://www.example.co.uk/elsewhere.asp"
window.close();
}
parentLocation="http://www.example.co.uk/elsewhereasp"
// Check if Firefox or not
var browserName=navigator.appName;
if (browserName=="Netscape")
{
// works in Firefox so use it
window.opener.location = parentLocation;
window.close();
}
else
{
// maximize pop up and move to destination
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);
window.location = parentLocation;
}