Javascript window navigator object provides the functionality to detect the number of aspects of browser. Javascript navigator object can be used with or without window object e.g.: window.navigator or directly navigator. When we use window.navigator it represents the browser window and its navigator object. If we use navigator object directly it automatically detects the browser window object that is created dynamically by Javascript runtime engine and collects the information about client browser. Javascript navigator object enables you to detect the browser settings also. Javascript navigator object can detect whether cookies are enabled or not. Navigator object can also detect the browser has javascript enabled or not. You can also detect the browser using navigator object. Click here to see the code for Javascript browser detection.

Navigator Object Methods

javaEnabled(): javaEnabled method of Javascript navigator object detects that the browser has Java Enabled or not. javaEnabled method returns true or false based on the client browser settings.

taintEnabled(): taintEnabled method of navigator object also returns the Boolean value as true or false that detects that the browser has data tainting enabled.

Navigator Object Collections

plugins: plugins collections returns the Plugins supported by the client browser that can be embedded in the HTML pages using HTML object tag or embed tag e.g.: media player plug-in, real player plug-in, flash player or shockwave plug-in.

mimeTypes: mimeTypes collection of Javascript navigator object returns the collection of mimeTypes supported by client browser. E.g.: application/pdf, application/x-shockwave-flash etc.

Continue to next tutorial: Javascript Navigator Properties to learn how to get the browser information.

Recent JavaScript Tutorials

Javascript FSO ShortPath property

Javascript FileSystemObject (FSO) provides a ShortPath property that can be accessed using the folder object or file object returned by the GetFolder or GetFile method.

Javascript FSO Path Property

Javascript FileSystemObject (FSO) provides the Path property that can be accessed through the file object or folder object returned by the GetFile or GelFolder method

Javascript FSO Type property

Javascript FileSystemObject (FSO) provides a Type property that can be accessed through file object or folder object returned by the GetFile or GetFolder method

Javascript FSO ShortName property

Javascript FileSystemObject (FSO) provides a ShortName property that can be accessed using the folder object or file object returned by the GetFolder or GetFile method.

Javascript FSO Name Property

Javascript FileSystemObject (FSO) provides a Name property that can be accessed using file object or folder object.