![]() |
VOOZH | about |
The embed height property in HTML DOM is used to set or return the value of the height attribute. The height attribute defines the height of the embedded content in terms of pixels.
Syntax:
embedObject.heightembedObject.height = pixelsProperty Values:
Return value: It returns a number to show the height of embedded content.
Example:
Temporary Note on Output : On Run, The output may show a "Refuse to Connect" error due to security restrictions from the GeeksforGeeks site, which prevents embedding. To see the output, replace the src URL with one that allows iframe embedding, such as "https://www.example.com//".
Example:
Temporary Note on Output : On Run, The output may show a "Refuse to Connect" error due to security restrictions from the GeeksforGeeks site, which prevents embedding. To see the output, replace the src URL with one that allows iframe embedding, such as "https://www.example.com//".
The browsers supported by DOM embed height property are listed below: