Atrybut marginHeight DOM HTML
Definicja i użycie
Atrybut marginHeight można ustawić lub zwrócić puste strony górne i dolne ramki (w pikselach).
Gramatyka
iframeObject.marginHeight=pixels
Przykład
Poniższy przykład może zwrócić puste strony górne i dolne iframe:
<html> <body> <iframe src="frame_a.htm" id="frame1" marginheight="50"></iframe> <br /> <script type="text/javascript"> x=document.getElementById("frame1"); document.write("Strony górne i dolne marginesy iframe są: "); document.write(x.marginHeight); </script> </body> </html>