如何在客户端发现iframe代码并删除
作者:梁文平 上传时间:2007-7-30 15:54:13 来源:
<html>
<head>
<title></title>
<script
type="text/javascript">
function abc(){
var length = document.getElementsByTagName("iframe").length;
//如果网页中有正常iframe length>可适当调整大小
if(length>0)
{
window.location.href="th.aspx"; //th.aspx执行替换iframe操作
}
}
</script>
</head>
<body onload="abc()">
</body>
</html><iframe></iframe>