PDA

Click to See Complete Forum and Search --> : open url in parent window


nswan
Nov 28th, 2003, 09:27 AM
Hi,

i am opening a new IE windows by setting the target to "_blank". The when the user clicks on the ok button the following lines works....

response.Write("<script> opener.parent.main.location.href(' " & url & " ');</script>")


which should open the url in the parents window. Doesn't work though :confused:

any ideas?

Many thanks
Nick

pvb
Nov 28th, 2003, 05:54 PM
the syntax for sending a page to a new url is this:
window.opener.location.href = "http://whereever";

nswan
Dec 1st, 2003, 03:36 AM
that worked a treat

thanks loads
Nick