This script provides a gateway into either the Acrobat-enhanced or HTML-only version of a site. The programmer may specify destination pages for Acrobat-enabled and non-Acrobat 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.
( Javascript 1.1 | ( JScript 2.0 & VBScript 2.0 ) | ECMAScript 1.0 ) & ( Netscape plugin architecture | MSIE ActiveX architecture )
Posted.
This script is released under a Creative Commons License.