width of current page in html code example Example: get screen width javascript window.screen.width //or just screen.width