HTML DOM name Property
Complete IFrame Object Reference
Definition and Usage
The name property sets or returns the name of an iframe.
Syntax
Example
The following example returns the name of the iframe:
<html>
<body>
<iframe src="frame_a.htm" id="frame1" name="iframe">
</iframe><br />
<script type="text/javascript">
x=document.getElementById("frame1");
document.write("The iframe's name is: ");
document.write(x.name);
</script>
</body>
</html>
|
Try-It-Yourself Demos
Return
the name of an <iframe> element
Complete IFrame Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|