Flasher Archive

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


Subject: RE: FLASH: back button in browser - oops
From: Eric Dunham
Date: Sun, 13 Feb 2000 03:37:44 GMT

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


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

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

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