These projects are retired. The development has stopped and we don't provide support for them anymore.

Browser detection

Name

Browser detection -- detects which browser is interpreting the current page.

Synopsis

<SCRIPT LANGUAGE="JavaScript" SRC="scripts/rl_browser.js"</SCRIPT>
                  

Requires

nothing

Variables

integer ie;
integer mz;
integer ns;
integer op;
integer rl;

Description

The detection of the executing browser is automatically launched and the corresponding variable is set to 1. If none of the browser detection routines turn out to provide successful results, the function unsupportedBrowser() is called. This can either be the one that is provided by default by the Error handling script or a custom implementation that has been defined beforehand by the user.

Details

Following is a detailed description of the elements listed in the synopsis.

Variables

ie
     This variable is set to 1 when the current browser is Internet Explorer 4.x or 5.x and set to 0 otherwise.

mz
     This variable is set to 1 when the current browser is Mozilla or Netscape 6.x and set to 0 otherwise.

ns
     This variable is set to 1 when the current browser is Netscape 4.x and set to 0 otherwise.

op
     This variable is set to 1 when the current browser is Opera 5.x and set to 0 otherwise.

rl
     This variable is set to 1 when RelativeLayers was able to detect the current browser as being supported and set to 0 otherwise.