width in pure javascript code example Example: how to get width in javascript int screenHeight = screenSize.height; int screenWidth = screenSize.width;