
September 4th, 2003, 10:18 AM
|
|
Junior Member
|
|
Join Date: Jan 2003
Location: Ireland
Posts: 9
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
error reloading other window with javascript
Hi,
I have a window that generates a popup. In the popup a link takes you to a second page within the popup.In the 2nd page of the popup I have the following code
Code:
<body onUnload="opener.location.replace(window.opener.location);">
This reloads the original parent window. This reloads the page but is causing the problems, the page seems to change but it is going to this URL
http://www.mysitehere.com/[object]
It should refresh the page but instead it is adding the [object] piece to the end.
Do you have any idea's on how to fix this (or an alternative)?
Thanks in advance,
Martin
|