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