how to get an elements iwidth in hs code example Example: javascript get width of a div document.getElementById("mydiv").offsetWidth