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