When I’m use development tools’ link in Chrome I can select any tag(in source code) and info about chosen element are displayed(image below). I need write script that can do the same operation. How I can get width and height for every tag in a source code. Any idea?
.
When I’m use development tools’ link in Chrome I can select any tag(in source
Share
There’s this lovely getBoundingClientRect function. No need for jQuery. Works in every browser.