Recent content by KevMart

  1. K

    How to Display Java Script variable in HTML Page?

    Make a div tag and set the id to resolution. Then use innerHTML to set the text within the div like so; in HTML: <div id="resolution"> </div> in javascript: x = window.innerWidth; document.getElementByID("resolution").innerHTML = x; That's it!
Back
Top