Actions

API15

JBrowser/getMajor

< API15:JBrowser

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Retrieve the current browser's major version.


<! removed transcluded page call, red link never existed >

Syntax

getMajor()


Returns

integer The current browser's major version.

Defined in

libraries/joomla/environment/browser.php

Importing

jimport( 'joomla.environment.browser' );

Source Body

function getMajor()  {
    return $this->_majorVersion;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples


Advertisement