isIE (XSPUserAgent - JavaScript)

Checks if the browser is Internet Explorer (IE).

Syntax

isIE() : boolean

isIE(min:double, max:double) : boolean

Parameters Description
min The minimum acceptable version inclusive.
max The maximum acceptable version inclusive.
Return value Description
boolean true if the browser is IE and (if specified) within the acceptable range; false otherwise.

Examples

This computed field displays a message if the browser is not IE, or the version is not acceptable:
if(!context.getUserAgent().isIE()) {
	return "You must use Internet Explorer - The Mgt"
} else {
	if(!context.getUserAgent().isIE(6.0, 7.0)) {
		return "You must upgrade Internet Explorer - The Mgt"
	}
}