-->

Monday, April 6, 2015

Example of Navigator object in Java Script

Example of Navigator object in Java Script

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <title>Navigator objects</title>
</head>
<body>
<script type="text/javascript" >
    document.write("User Agent Header " + navigator.userAgent +"<br/>");
    document.write("Browser Code name: " + navigator.appCodeName + "<br/>");
    document.write("Browser name: " + navigator.appName + "<br/>");
    document.write("Browser Version: " + navigator.appVersion + "<br/>");
    document.write("Cookies Enabled " + navigator.cookieEnabled + "<br/>");
    document.write("Platform " + navigator.platform + "<br/>");

</script>
</body>
</html>

Code generate the following Output

Example of Navigator object in Java Script


Read other related articles

Also read other articles

© Copyright 2013 Computer Programming | All Right Reserved