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