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: Sun, 13 Feb 2000 07:20:13 GMT

makes a lot of sense.
I'm using top.location.replace...
instead of window.location.replace...
(site used to be in frames but now isn't)
This solution works for windows MIE browsers but not for Mac Netscape browsers.
Haven't tried Win Netscape yet.

Would window.location work any better than top.location?
Maybe I should try it and find out - huh?
-charlene

On 2/12/00, Eric Dunham wrote:
>If you use window.location for your JavaScript detection routine
>redirecting, it's very easy.
>For example, say hasFlash is a predefined variable from another part of your
>script, and that hasFlash will either have the value true or false (a
>boolean variable). Then you could easily do:
>
>(hasFlash)? window.location.replace(flashURL) :
>window.location.replace(noflashURL);
>
>Notice in this example that the variables flashURL and noflashURL would each
>have corresponding values (or you could just put the URL string in quotes
>inside the method call).
>Basically what you're doing is replacing the value of the current document
>in the user's history with a new document. When you do a normal
>window.location() the user gets sent to a new page, and the browser history
>gets incremented. With the replace() method, you are actually not adding a
>new page to the user's browser history, you are simply replacing the current
>value with one that you specified. Did that make sense? :)
>
>HTH,
>Eric Dunham
>
><snip>
>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?
></snip>
>
>
>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
  FLASH: back button in browser - oops, Charlene Reese
  RE: FLASH: back button in browser - oops, Eric Dunham

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