$Web Browser: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
(Automatically generated page update)
 
Line 5: Line 5:


==Syntax==
==Syntax==
<p class="syntax"><span class="term">%vsn</span> = <span class="literal">$Web_Browser</span>( brand )
<p class="syntax"><span class="term">%vsn</span> = <span class="literal">$Web_Browser</span>( <span class="term">brand</span> )
</p>
</p>



Latest revision as of 00:43, 16 April 2013

Retrieve browser version

$Web_Browser retrieves the version of the requested browser using the User-agent request header.

Syntax

%vsn = $Web_Browser( brand )


%vsn A number containing the version of the indicated browser, or 0 if the browser is not of the indicated type.
brand The type of browser for which version is to be checked. Valid browsers are
IE Microsoft Internet Explorer™
NS Netscape Navigator™
OPERA Opera™

Examples

This function is useful for testing browser type and release. For example, the following tests if the browser is any release of Internet Explorer:

If $Web_Browser('IE') Then

And the following tests if the browser is Netscape Navigator release 6 or later:

IF $Web_Browser('NS') GE 6 THEN