文章浏览 复制本页面地址

获取iframe框架中src所指向的文件的內容以及赋值URL

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>获取iframe框架中src所指向的文件的內容</title>
</head>
<script language=javascript>
function ini(){
 alert(document.getElementByIdx_x("frame_id").contentWindow.document.body.innerHTML)
}

self.parent.frames["frame_id"].location.href= 'admin.php?getpass=ok&mark=geturl&geturl='+geturl;
</script>
<body onload="ini()">
<iframe id=frame_id src="123.html"></iframe>

</body>

</html>

标签:
上一篇:
下一篇: