Flash Redirect - Description

This script provides a gateway into either the Flash or HTML version of a site. The programmer may specify destination pages for flash-enabled and non-flash browsers as well as specify a page when detection is not possible (IE on the Macintosh or when Javascript is turned off). The detection occurs in the background with the redirection occuring automatically. The detection page also removes itself from the history so that clicking the browser's back button won't re-trigger the detection.

Note: Any page using this script as described in the installation instructions will not validate under any HTML or XHTML specification. This is due to using a <noscript> element to contain the <meta> refresh tag needed for non-Javascript browsers. All HTML and XHTML standards that support both tags state that <meta> tags can only go in the head of a document and <noscript> tags must go in the body. So a block that combines both elements will never validate.

Script Engine / Document Object Model Required

( Javascript 1.1 | ( JScript 2.0 & VBScript 2.0 ) | ECMAScript 1.0 ) & ( Netscape plugin architecture | MSIE ActiveX architecture )

Modification History




Fixed bug that prevented Flash 5 detection in IE.

2000/10/23 v1.0

Fixed bug that reported wrong Flash version number for some revisions of the plugin.

2000/10/25 v1.1.0

This script now requires the Flash Detection Only script (also available in the download).


Better instructions based on a suggestion from John-Paul. Thanks!

2003/03/05 v1.1.1

Changed installation variable names to include the word 'Flash' (to prevent bugs on pages that include detect and redirection scripts for other plugins).

More about this script

Related to this script


This script is released under a Creative Commons License.