Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: back button in browser - oops
From: bob jones
Date: Mon, 14 Feb 2000 00:09:21 GMT

This may help...from the people at www.irt.org
(greatest resource on the web IMHO)
***********
Q921 When using a simple redirect script for
javascript enabled browsers, how can I stop the
browser redirecting when the user presses the back
button to back out of my site?

Don't create the looping feature in the first place.
Instead of doing:

<SCRIPT LANGUAGE="JavaScript"><!--
location.href = 'nextpage.htm';
//--></SCRIPT>
<NOSCRIPT>
YOur browser does not support JavaScript, or
JavaScript is disabled.
</NOSCRIPT>



Use:

<SCRIPT LANGUAGE="JavaScript"><!--
if (document.images)

location.href.replace('http://www.somewhere.com/nextpage.htm');
else
location.href = 'nextpage.htm';
//--></SCRIPT>
<NOSCRIPT>
Your browser does not support JavaScript, or
JavaScript is disabled.
</NOSCRIPT>
************
Of course this does not work for IE3 but send those
users a message to upgrade to a proper browser!
Alternatively Search irt.org and find further options.



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The Worlds Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]