Latest web development tutorials

HTML DOM Frame / IFrame marginHeight property

Frame / IFrame Object Reference Frame / IFrame objects

Definition and Usage

marginHeight property sets or returns the value of frame / iframe element marginHeight elements.

marginheight property frame top and bottom blank (in pixels).

grammar

frameObject.marginHeight=pixels

或者

iframeObject.marginHeight=pixels


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support marginHeight property


Examples

Examples

Return Value marginheight property:

document.write(document.getElementById("myframe").marginHeight);

try it"


Frame / IFrame Object Reference Frame / IFrame objects