[thelist] JavaScript problems in IE

Ben Henick persist1_pdx at yahoo.com
Mon Oct 16 20:35:19 CDT 2000

--- epartee at ix.netcom.com wrote:
> window.location.href=document.referrer
>  This code seems to work fine in NN (4.7) but I occasionally get an
> "invalid procedure call or argument" error in IE. Is there a better
> solution?

Under the circumstances - unless the ability to utilize this across
browsing sessions is required - use window.history.back() instead. 

var Sent;
Sent = document.referrer;
if (Sent.length > 0) {
  window.history.back(); }

Etc. etc. etc.

Ben Henick              |  "In the long run, men hit only
Web Author At-Large     |  what they aim at.  Therefore,
www.io.com/persist1/    |  though they should fail
persist1 at io.com         |  immediately, they had better aim
persist1_pdx at yahoo.com  |  high."  --Henry David Thoreau

Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.

More information about the thelist mailing list