What are different Navigator methods available?


You can use several Navigator related properties in your web page. The following are the properties −

Sr.No
Properties & Description
1javaEnabled()
This method determines if JavaScript is enabled in the client. If JavaScript is enabled, this method returns true; otherwise, it returns false.
2plugings.refresh
This method makes newly installed plug-ins available and populates the plugins array with all new plug-in names. Netscape only.
3preference(name,value)
This method allows a signed script to get and set some Netscape preferences. If the second parameter is omitted, this method will return the value of the specified preference; otherwise, it sets the value. Netscape only.
4taintEnabled()
This method returns true if data tainting is enabled; false otherwise.

Updated on: 23-Jun-2020

131 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements