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 java script browsers img1](https://www.assignmenthelp.net/webimg/ahp/javascript-assignment-help/java-script-browsers-img1.jpg)
Output
![Java Script Browsers java script browsers img2](https://www.assignmenthelp.net/webimg/ahp/javascript-assignment-help/java-script-browsers-img2.jpg)
Program-Navigator Methods
![Java Script Browsers java script browsers img3](https://www.assignmenthelp.net/webimg/ahp/javascript-assignment-help/java-script-browsers-img3.jpg)
- Namespaces
- Preprocessor Directives
- Regular Expressions
- Exception Handling
- File I/O
- Attributes
- Reflection
- Properties
- Indexers
- Delegates
- Events
- Collections
- Generics
- Anonymous Methods
- Unsafe Code
- Multithreading
- Variables Declarations
- Build In Types
- Operators
- Unary Operators
- Binary Operators
- Array Operations