-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
15 lines (14 loc) · 541 Bytes
/
Copy pathscript.js
File metadata and controls
15 lines (14 loc) · 541 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
let textOne = document.getElementById('textOne');
let button = document.getElementById('button');
button.addEventListener("click", () => {
return (
textOne.innerHTML = `
<p>Windows Screen: ${window.screen}</p>
<p>Windows Screen: ${screen.height}</p>
<p>Windows Screen: ${screen.width}</p>
<p>Available Screen Width: ${screen.availWidth}</p>
<p>Available Screen Height: ${screen.availHeight}</p>
<p>Screen Color Depth: ${screen.colorDepth}</p>
<p>Screen Pixel Depth: ${screen.pixelDepth}</p>
`)
})