1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-03 02:25:30 +00:00
elinks/test/ecmascript/availWidth.html

20 lines
305 B
HTML
Raw Normal View History

2021-05-29 11:42:34 +00:00
<!DOCTYPE html>
<html>
<body>
<p>Click the button to display the avail width of your screen, in pixels.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = "Avail Width: " + screen.availWidth + "px";
alert(x);
}
</script>
</body>
</html>