Web API | DOMRect height property
In Web API there is a DOMRect Interface which has a property height which gives us the height of the DOMRect object.
var recX = DOMRect.height;
Example: Getting height of the DOMRect object created.
Before clicking the button:
After clicking the button:
Supported Browsers: The browsers supported by DOMRect height property are listed below:
- Google Chrome
- Safari 10.1
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.