Changing Div Height According Screen Resolution Javascript March 21, 2024 Post a Comment Here is the problem. I have I want to check user resolution and change his height according user resolution, using javascript? Javascript: windowSolution 1: If you want set the Screen Height:var mainNode = document.getElementById("main"); mainNode.style.height = screen.height + "px"; CopyScreen Avail HeightScreen HeightDOMElement Client HeightScreen height is different from client height (document.documentElement.clientHeight). Share Post a Comment for "Changing Div Height According Screen Resolution Javascript"
Post a Comment for "Changing Div Height According Screen Resolution Javascript"