Browser Information:
Object: Navigator
Method or Function: appName, appVersion
Syntax: Navigator. appName
Syntax: Navigator. appVersion
Syntax: Navigator.platform
appName - holds the name of the browser
appVersion – holds the version of the browser
platform - ?
Example
<script  type="text/javascript">
  document.write("You are using  "+navigator.platform);
  document.write("<br />");
  document.write("Your browser's name is  "+navigator.appName);
  document.write("<br />");
  document.write("Browser version:  "+ navigator.appVersion);
  </script>
Output
No comments:
Post a Comment