The Browser component has several methods that detect the browser type. It can return the name of the browser or an integer index of the browser, or it can fire an event based on the browser type. You can use the Browser component in conjunction with other components to redirect a user automatically to a specific page dependent on the users browser type.
Name - Unique name of the control. Must exactly match
the name of the corresponding JavaScript object on the page.
integer getCurrentBrowserInt(void)
Function: | getCurrentBrowserInt | ||||||||||||||||
Input: | None | ||||||||||||||||
Return: | Function returns integer value
corresponding to the browser found listed asd followed:
|
||||||||||||||||
Description: | This function is used with client-side JavaScript to detect the brand and version of the user's browser. Detects only Netscape and Microsoft browsers. Returns 0 if a different brand is detected. |
string getCurrentBrowserStr(void)
Function: | getCurrentBrowserStr | ||||||||||||||||
Input: | None | ||||||||||||||||
Return: | Function returns string value
corresponding to the browser found listed asd followed:
|
||||||||||||||||
Description: | This function is used with client-side JavaScript to detect the brand and version of the user's browser. Detects only Netscape and Microsoft browsers. Returns "Other" if a different brand is detected. |
void getCurrentBrowser(void)
Function: | getCurrentBrowser |
Input: | None |
Return: | None. |
Description: | This function is used with client-side
JavaScript to detect the brand and version of the user's
browser. Detects only Netscape and Microsoft browsers. Note: You must call getCurrentBrowser to generate one of the following events. |
void onIE(void)
Function: | onIE |
Input: | None |
Return: | None. |
Description: | This event is executed for all versions of Internet Explorer |
void onIE3(void)
Function: | onIE3 |
Input: | None |
Return: | None. |
Description: | This event is executed for only version 3 of Internet Explorer |
void onIE4(void)
Function: | onIE4 |
Input: | None |
Return: | None. |
Description: | This event is executed for only version 4 of Internet Explorer |
void onIE5(void)
Function: | onIE5 |
Input: | None |
Return: | None. |
Description: | This event is executed for only version 5 of Internet Explorer |
void onNS(void)
Function: | onNS |
Input: | None |
Return: | None. |
Description: | This event is executed for all versions of Internet Explorer |
void onNS2(void)
Function: | getCurrentBrowserInt |
Input: | None |
Return: | None. |
Description: | This event is executed for all versions of Internet Explorer |
void onNS3(void)
Function: | getCurrentBrowserInt |
Input: | None |
Return: | None. |
Description: | This event is executed for all versions of Internet Explorer |
void onNS4(void)
Function: | getCurrentBrowserInt |
Input: | None |
Return: | None. |
Description: | This event is executed for all versions of Internet Explorer |
void onNS5(void)
Function: | getCurrentBrowserInt |
Input: | None |
Return: | None. |
Description: | This event is executed for all versions of Internet Explorer |
void onOther(void)
Function: | getCurrentBrowserInt |
Input: | None |
Return: | None. |
Description: | This event is executed for all versions of Internet Explorer |
Environment: Client