...

View Full Version : Changing the parent page URL



cdc08x
10-15-2005, 09:51 AM
Hi all!
I'm trying to build a function that makes a new window call back its parent and make it reload its content, passing the reference it wants to redirect to.
This is my code but it doesn't seem to work.
Why?



function parentLoad( href )
{ var parentWin = window.parent;
parentWin.location.href = href;
parentWin.location.reload(true);
self.blur();
parentWin.focus();
}


Thanx a lot!!

rm-f
10-18-2005, 03:20 PM
try
window.location.replace(newUrl);

martin_narg
10-18-2005, 03:41 PM
http://www.codingforums.com/showthread.php?t=70282



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum