javascript how to get screen height of element code example Example: get screen width javascript window.screen.width //or just screen.width