Liferay Portal JavaScript Utilities

This tutorial explains some of the utility methods and objects inside the Liferay global JavaScript object.

Liferay Browser

The Liferay.Browser object contains methods that expose the current user agent characteristics without the need of accessing and parsing the global window.navigator object.

The available methods for the Liferay.Browser object are listed in the table below:

Method Type Description
acceptsGzip boolean
getMajorVersion number
getRevision number
getVersion number
isAir boolean
isChrome boolean
isFirefox boolean
isGecko boolean
isIe boolean
isIphone boolean
isLinux boolean
isMac boolean
isMobile boolean
isMozilla boolean
isOpera boolean
isRtf boolean
isSafari boolean
isSun boolean
isWebKit boolean
isWindows boolean

Related Topics

Liferay Theme Display

0 (0 Votes)
Working with URLs in JavaScript Previous