Frame/IFrame marginWidth Property
Frame/IFrame Object
Definition and Usage
The marginWidth property sets or returns the value of the marginwidth attribute in a frame/iframe element.
The marginwidth attribute specifies the left and right margins of an frame/iframe, in pixels.
Syntax
frameObject.marginWidth=pixels
or
iframeObject.marginWidth=pixels |
Browser Support

The marginWidth property is supported in all major browsers.
Example
Example
Return the value of the marginwidth attribute:
<html>
<body>
<iframe id="myframe" src="demo_iframe.htm" marginheight="50" marginwidth="50">
<p>Your browser does not support iframes.</p>
</iframe>
<br /><br />
<p>The value of the marginwidth attribute is:
<script type="text/javascript">
document.write(document.getElementById("myframe").marginWidth);
</script>
<p>
</body>
</html>
|
Try it yourself »
|
Frame/IFrame Object
Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive
XML toolset to tackle today's advanced XML data transformation and aggregation challenges.
|
- XML Pipeline Editor, Debugger and Code Generator
- DataDirect XML Converters
- XQuery Mapper, Editor, Debugger, and Profiler
- XSLT Mapper, Editor, Debugger, Designer, and Profiler
- Java and C# for .Net Code Generation
- XML Schema Designer With Documentation Generator
- XML Editor With Full XPath Integration
Download a free trial now
|
|