The name property sets or returns the name of an iframe.
iframeObject.name=name
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>
Return the name of an <iframe> element
Jump to: Top of Page or HOME or Printer friendly page
W3Schools provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright 1999-2008 by Refsnes Data. All Rights Reserved.