Archive

Posts Tagged ‘Opera’

Navigator Object in JavaScript

October 7th, 2009 Mehmatrix No comments

We need to know how to use properties and methods of Navigator object in JavaScript to make powerful applications. Navigator object gives us to get browser information of client. There is a list of all properties and methods in Javascript.

I. All Common Navigator Properties in JavaScript

Property

Description

appCodeName :

The code name of the browser
(ie: Mozilla)

appName :

The name of the browser
(ie: Netscape)

appVersion :

The version information of the browser
(ie: 5.0 (Windows; en))

mimeTypes :

Returns array of all MIME types supported by the client

platform :

Returns the platform of visitor’s computer
(ie: Win32)

plugins :

Returns array of all plug-ins which is installed on visitor’s computer

userAgent :

Returns the user-agent header
(ie: Mozilla/5.0 (Windows; U; Windows NT 6.0; tr; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729))

onLine :

Returns bolean value of browser’s online status
(ie: true)

cookieEnabled :

Returns bolean value of browser’s cookie status
(ie: false)

cookieEnabled :

Returns bolean value of browser’s cookie status
(ie: false)


Click to Read Complete Article »

Bookmark and Share
eXTReMe Tracker