It is very much important to understand how your web page script appears in different browsers and also have an idea of the browser your web page script is going to be run on when developing the web page. A clear understanding of the browser type will help you develop web pages that will be fully compatible with the web browser.
Knowing the browser involves understanding the browser properties and to check this properties we can employ the help of the built-in navigator object
below shows the list of navigator properties that can be implemented on a web page to identify browsers clients.
|1||language||This property is used to hold the web browser language abbreviation|
|2||platform||This hold the platform for which the web browser was built|
|3||mimTypes||This holds all the client supported MIME|
|4||appVersion||This hold the version of the browser application|
|5||plugins||This holds all plugins that’s present on the browser client|
|6||appCodeName||This holds the browser code name.|
|7||userAgent||This holds all the version of the browser with code names which is used to identify the browser client|
These are some of the methods used to access some of the properties of the web client
|1||taintEnabled()||This method is used to check if taint is enabled on the client|
|2||Plugings.refresh||This makes newly installed plugins available|