خاصية marginHeight في HTML DOM
التعريف والاستخدام
يمكن استخدام خاصية marginHeight لضبط أو العودة إلى الفارغة العلوية والسفلية للإطار (بالبكسل).
النحو
iframeObject.marginHeight=pixels
مثال
السطر التالي يمكنه العودة إلى الصفحة الفارغة العلوية والسفلية لiframe:
<html> <body> <iframe src="frame_a.htm" id="frame1" marginheight="50"></iframe> <br /> <script type="text/javascript"> x=document.getElementById("frame1"); document.write("Top and bottom margins of the iframe are: "); document.write(x.marginHeight); </script> </body> </html>