Here you can find a number of examples on Java Script.Please find the various kinds of examples listed on the right side of this site. If you don't find anything on Java Script then please write to us or leave a commnet. We are pleased to help and find the solution of your problem.
Showing posts with label properties. Show all posts
Showing posts with label properties. Show all posts

Javascript: Explorer Properties



<html>
<head>
<title>Explorer Properties</title>

<script language="javascript">
document.write("Appname: " + navigator.appName + "<br>");
document.write("Appversion: " + navigator.appVersion + "<br>");
document.write("Appminorversion: " + navigator.appMinorVersion + "<br>");
document.write("Appcodename: " + navigator.appCodeName + "<br>");
document.write("Platform: " + navigator.platform + "<br>");
document.write("cpuclass: " + navigator.cpuClass + "<br>");
document.write("Useragent: " + navigator.useragent + "<br>");
document.write("CookieEnabled: " + navigator.cookieEnabled + "<br>");
document.write("BrowserLanguage: " + navigator.browserLangugae + "<br>");
document.write("UserLanguage: " + navigator.userLanguage + "<br>");
document.write("SystemLanguage: " + navigator.systemLanguage + "<br>");
document.write("OnLine: " + navigator.onLine + "<br>");
document.write("MimeTypesLength: " + navigator.mimeTypes.Length + "<br>");
document.write("PluginsLength: " + navigator.plugins.Length + "<br>");
document.write("UserProfile: " + navigator.userProfile + "<br>");
</script>

</head>
</html>

Javascript: Location Properties



<html>
<head>
<title>Location Properties</title>

<script language="javascript">
document.write("<h2>Some Location Properties</h2>");
document.write("href: ", window.location.href, "<br>");
document.write("Protocol: ", window.location.protocol, "<br>");
document.write("HostName: ", window.location.hostname, "<br>");
document.write("PathName: ", window.location.pathname, "<br>");
document.write("<hr>");
</script>

</head>
</html>

Javascript: Window Properties



<html>
<head>
<title>Window Properties</title>

<script language="javascript">
document.write("<h2>Some window Properties</h2>");
document.write("Innerheight: ", window.innerHeight, "<br>");
document.write("Innerwidth: ", window.innerWidth, "<br>");
document.write("Innerlocation : ", window.location, "<br>");
</script>

</head>
</html>

Javascript: Navigator Properties



<html>
<head>
<title>Navigator Object</title>

<script language="javascript">
document.write("<h2>Navigator Properties</h2>");
document.write("appName: ",navigator.appName, "<br>");
document.write("appVersion: ",navigator.appVersion, "<br>");
document.write("userAgent: ",navigator.userAgent, "<br>");
document.write("AppCode: ", navigator.appCode, "<br>");
document.write("Langugae: ", navigator.language, "<br>");
document.write("Platform: ", navigator.platform, "<br>");
document.write("mime types Length: ", navigator.mimeTypes.length, "<br>");
document.write("Plugins Length: ", navigator.plugins.length, "<br>");
</script>

</head>
</html>
Google