Flasher Archive

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


Subject: Re: FLASH: back button in browser - oops
From: Charlene Reese
Date: Fri, 11 Feb 2000 18:51:43 GMT

i tried it and it didn't work.
selecting the back button still sends the person to the page they were on
again.

What am I missing?

<script language="JavaScript"><!--
var bAgent = window.navigator.userAgent;
var bAppName = window.navigator.appName;
if ((bAppName.indexOf("Explorer") >= 0) &&
(bAgent.indexOf("Mozilla/4") >= 0) && (bAgent.indexOf("Mac") >= 0)){
top.location.replace('indexchoose.htm');}
// -->
</script>

<script language="JavaScript"><!--
var ShockMode = 0;
if (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"] &&
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
if (navigator.plugins && navigator.plugins["Shockwave Flash"])
ShockMode = 1;
}
function checkForShockwave()
{
navigator.plugins.refresh();
if ( navigator.plugins["Shockwave Flash"] ){
top.location.replace('homeflash/home.htm');
} else {
setTimeout( "checkForShockwave()", 1000 );
}
}

if ( ShockMode ) {
location="homeflash/home.htm";
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0
&& navigator.appVersion.indexOf("2.")>=0)){
top.location.replace('newstuff/index.htm');
}
// -->
</script>




On 2/11/00, Taylor wrote:
>----- Original Message -----
>From: Charlene Reese <catreesestudio [dot] net>
>
>> I have a javascript on the home page of a site that directs the visitor to
>> a flash or nonflash page accordingly. However, if they use their back
>> button to back out of the site when they hit the home page it redirects
>> them again and they can't back out. Has anyone implemented a solution
>that
>> solves that problem?
>
>Don't use location = 'foo.html' use location.replace('foo.html')
>
>This will replace the page with another in the browser's history, preventing
>the trap.
>
>--
>Taylor
>Grumpy futurist
>taylorattaylor [dot] org
>
>
>flasher is generously supported by...
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and The Flash Film Festival
> "The World’s 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


--------------------------
Charlene Reese - S r T e U e D s I e O
Digital Graphic Design for Print, Multimedia and the Web
catreesestudio [dot] net http://www.reesestudio.net
949.766.7822



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s 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


Replies
  Re: FLASH: back button in browser - oops, Taylor
  Re: FLASH: back button in browser - oops, Christopher Fulford

Replies
  FLASH: back button in browser - oops, Charlene Reese
  Re: FLASH: back button in browser - oops, Taylor

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