Code Snippets
Login
Screenwidth
Dynamic Measurement and Display of current screen width
Label
function displayScreenWidth() { const screenwidth = document.getElementById("screenwidth"); let theWidth = window.innerWidth; screenwidth.innerHTML = 'The screen width is: ' + theWidth; } displayScreenWidth();
Copy to clipboard
Copied!
©
Leerlandais 2024