![]() |
VOOZH | about |
The DOM embed width property in HTML is used to set or return the value of the width attribute. The width attribute defines the width of the embedded content, in pixels.
Syntax:
embedObject.widthembedObject.width = pixelsProperty Values:
Return value: It returns a number to show the width 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//".
Supported Browsers: The browsers supported by DOM embed width property is listed below: