,program No 8 (Web Tech)
,program No 8 (Web Tech)
8
Objective: Write programs using javascript for web page to display browser’s
information:
Theory:- HTML tags used in this program are :
iii. <form>:- The <form> tag is used to create an HTML form for user input.
v. <input>:- The <input> tag specifies an input field where the user can enter
data.
Source Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aboyt Browser</title>
<script>
function show()
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.platform +"<br>");
document.write("Plug ins"+navigator.plugins +"<br>");
document.write("System Language"+navigator.Language +"<br>");
document.write("User language"+navigator.userAgent +"<br>");
document.write("User Agent"+navigator.userAgent +"<br>");
</script>
</head>
<body>
<h3>Browser's Information Using Javasript</h3>
<h4>Click below to find out</h4>
<form >
<div>
<input type="button" value="Click me" onclick="show()" />
</div>
</form>
</body>
</html>
Output:-