Darn! Thanks for the suggestions from Ben and Troy, but no go. Sorry it took me so long to respond to your suggestions. I have been trying every variation I could think of. Netscape appears to have a security issue with every form of window.history, like window.history.current, window.history.previous, or just plain window.history[1]. I can use the "home" method, if I want to id the user browser and write different script for microsoft vs. netscape, and assuming "home" was what I was trying to accomplish in the first place, which it isn't. I wanted to return the user to their referring page. No, "referrer" doesn't work either, and the witango <@cgiparam referer>) has same problem in Netscape. If you ever come across a method for making this work, please let me know. ( I am taunting myself with the thought that it is super easy, and I am the only one that can't get it.) In the meantime, I will hard code the "Return" button link to my own site, and the user can find their own way home. Oh well, this was off-topic anyhow.

In case anyone wants it, the following appears to get the user to their "Home Page." (The "window.parent" is added to compensate for frames.)

For Microsoft:
<Form><Input TYPE=Button Value="Home" onclick="window.parent.location='about:home'"></Form>

and for Netscape:
<form><input type="button" onclick="if (window.parent.home) window.parent.home()" value="Home"></form>

Ben Johansen wrote:

You might need to check if the cache defaults have changed in the NS7
Or
The browser is re-evaluating your top frame there-fore changing your
history.go(-h) each time.

Just some thoughts.

Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm Latest downloads & List Archives @ http://www.witango.ws


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:owner-witango-talk@;witango.com] On Behalf Of Charles Brown
Sent: Monday, October 14, 2002 7:05 PM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: Returning User Home

I have a few "generic" sites that are book marked by "anonymous" users from their own web sites. How can I get these users back to their own site when they are finished with mine?

My sites have a thin frame at the top with drop down menus that fill the

lower frame with the selected HTML. I used to have a "Return" button in

the top menu_select frame. It would activate a javascript that relied on "h=history.length" to fill the history.go(-h). Maybe this never should have worked, but it did, until Netscape 7 showed up. Now my "Return" button acts like a simple "Back" button, taking the user through each page they selected from my drop down menus.

This has got to be easier than I am making it. Suggestions will be much

appreciated.

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body



________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
               with unsubscribe witango-talk in the message body


Reply via email to