.

Javascript Browsers Assignment Help

Javascript-Browsers

It is very important to write code for web pages to check whether the browser has the ability to run java script code or not.

In java script there is a object called navigator to check the above mentioned scenario.  The object has properties and metods.

30.1 Properties of navigator object

Properties

Purpose

appCodeName

It displays the name of the browser

appVersion

It provides the description of browser

language

It displays the language. Ex., En

mimTypes

It indicates the supportable MIME formats

platform

It specifies the details of OS

plugins

It indicates the supportable plug ins

userAgent

It consists the details of client

30.2 Methods of navigator object

Description

Purpose

javaEnabled()

To check whether java script is enabled in the browser or not

plugings.refresh

It updates the changes in plug ins (install or uninstall)

preference(name,value)

To allocate Netscape browser preference for specified script

taintEnabled()

To check whether the tainting is enabled or not

Program-Navigator properties

java script browsers img1

Output

java script browsers img2

Program-Navigator Methods

java script browsers img3
.