Click to See Complete Forum and Search --> : navigation FROM a popup


jstevenson0000
12-02-2002, 02:46 PM
the existing navigation i have set up is thus:
i have an order form. when a visitor leaves this page in any manor, a little javascript launches a nominally functional popup (no scroll, no resize, no nav, etc.). in this popup, i placed a link to a different product page.

the navigation i desperately want:
i want the link in the popup to load the new product page into the previous (fully functional) browser window where the order form was (as long as the visitor left the order form by any means other than actually closing the window).

can this be done? i'm desperate. thank you.

-j

Vladdy
12-02-2002, 03:26 PM
Link to what you got now would be helpful in understanding what you need.
Why popup, anyway?
Why can not you have navigation within your order form?

justron
12-03-2002, 03:05 AM
Yes Js ..
You can access the original window from your popup by using the opener property


<a href="javascript://" onClick=
window.opener.document.location.href="desired page">Click</a>

justron
12-03-2002, 03:10 AM
PS...document is optional...window.opener.location.href will work fine

gil davis
12-03-2002, 05:44 AM
Originally posted by justron
PS...document is optional

Actually, documents do not have a location object according to specifications. Only windows do. The only explanation for it working using "document" is Internot Exploder's ability to discern what you thought you wanted it to do.

jstevenson0000
12-03-2002, 11:41 AM
Originally posted by justron
PS...document is optional...window.opener.location.href will work fine

ok, here's what i ended up with. if you see a problem, kindly let me know. it appears to work in IE:

<a href="javascript://" onClick="window.opener.location.href='new_product.htm';window.close();">link text</a>

thanks a lot.