-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask 22.html
More file actions
28 lines (28 loc) · 900 Bytes
/
task 22.html
File metadata and controls
28 lines (28 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!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>Document</title>
</head>
<body>
<h1>BOM
</h1>
<br>
<button onclick="fun()">Get</button>
<p id="demo"></p>
<script>
function fun()
{
var a=document.getElementById("demo")
a.innerHTML='Screen width:'+screen.width+'<br>'
a.innerHTML+='Screen height:'+screen.height+'<br>'
a.innerHTML+='Screen avail width:'+screen.availWidth+'<br>'
a.innerHTML+='Screen avail height:'+screen.availHeight+'<br>'
a.innerHTML+='color depth:'+screen.colorDepth+'<br>'
a.innerHTML+='pixel depth:'+screen.pixelDepth+'<br>'
}
</script>
</body>
</html>