The HTML DOM Object hspace property is used to set or return the value of the hspace attribute of the <object> element. The hspace attribute is used to specify the number of whitespaces for the left and right side of an Object.
Syntax
It returns the hspace Property.
objObject.hspace;
It sets the hspace Property.
objObject.hspace="pixels";
Property Value: It contains the numeric value that specify the number of white spaces from the left and right side of an Object.
Return Value : It returns a numeric value which represent the horizontal spaces around an element.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy