加入收藏-方便您以后查找网页特效哦
你的位置:
主页
>>
JS技巧
>>
iframe
判断iframe是否存在
加入如下代码到body区域
<script language="javascript"> function test(o) { try{ if(parent.frames(o)) alert("存在") } catch(e) {alert("不存在")} } </script> <iframe id="a"></iframe><br> <input type="button" value="测试a" onclick="test('a')"> <input type="button" value="测试b" onclick="test('b')">
COPYRIGHT © 2003-2005 ALL RIGHTS RESERVED
业务联系
|
广告服务
|
网站建设
|
关于我们
|
免责声明
月光宝盒工作室
800*600