Display Browser information using javascript
Q. Write a program using Java script for Web Page to display browsers information. Ans. <!DOCTYPE> <html> <head> <title>Browsers information</title> <script language=javascript> function showBrowserinfo() { document.write("<b>Web Page to display browsers information</b> <br><br>"); document.write("Name "+navigator.appName+"<br>"); document.write("Version "+navigator.appVersion +"<br>"); document.write("Codename " +navigator.appCodeName +"<br>"); document.write("Cookie enable"+navigator.cookieEnabled +"<br>"); document.write("Java Enable"+navigator.javaEnabled +"<br>"); document.write("Mime type"+navigator.mimeTypes +"<br>"); document.write("Platform"+navigator.platfo...
Comments
Post a Comment