最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

HTML DOM id 屬性

定義和用法

id 屬性可返回框架的 id。

語法

frameObject.id=id

實(shí)例

在我們的例子中,首先將創(chuàng)建包含帶有兩個(gè)列的框架集的 HTML 文檔。每列設(shè)置為瀏覽器窗口的 50%:

<html>
<frameset cols="50%,50%">
  <frame id="leftFrame" src="frame_id.htm">
  <frame id="rightFrame" src="frame_a.htm" >
</frameset>
</html>

HTML 文檔 "frame_id.htm" 被放入第一列,而 HTML 文檔 "frame_a.htm" 被放入第二列。

下面是 "frame_id.htm" 的源代碼:

<html>
<body>

<script type="text/javascript">
x=parent.document.getElementsByTagName("frame")[0];
y=parent.document.getElementsByTagName("frame")[1];


document.write("The id for the left frame is: ");
document.write(x.id);

document.write("<br />The id for the right frame is: ");
document.write(y.id);
</script>

</body>
</html>
迁安市| 正蓝旗| 城步| 榆社县| 庆元县| 河东区| 丰原市| 广安市| 德州市| 廊坊市| 仪陇县| 朝阳县| 琼结县| 根河市| 伊川县| 太原市| 洛阳市| 柯坪县| 信丰县| 曲麻莱县| 麦盖提县| 福建省| 娱乐| 松滋市| 周口市| 彭州市| 海门市| 云浮市| 高雄市| 阿城市| 泸溪县| 宜良县| 峨眉山市| 天峻县| 罗平县| 邵武市| 民县| 庆云县| 航空| 旬邑县| 夹江县|