js获取iframe中的内容 兼容火狐&&ie6
来源:互联网 发布:手机注册界面html源码 编辑:程序博客网 时间:2024/05/16 03:59
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="JavaScript" type="text/javascript">
//显示iframe中的内容
function list(){
//alert(document.getElementById("ali").contentWindow.document.documentElement.outerHTML);
document.getElementById('content').innerHTML=document.getElementById("ali").contentWindow.document.body.innerHTML;
}
</script>
</head>
<body>
<p><a href="#" onclick="list()">点击</a></p>
<p> </p>
<!--只能显示同域的内容,如果访问www.163.com等不同域名的网站则不行-->
<iframe id="ali" src="f.html" width="1024" height="500"></iframe>
<div id="content"></div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="JavaScript" type="text/javascript">
//显示iframe中的内容
function list(){
//alert(document.getElementById("ali").contentWindow.document.documentElement.outerHTML);
document.getElementById('content').innerHTML=document.getElementById("ali").contentWindow.document.body.innerHTML;
}
</script>
</head>
<body>
<p><a href="#" onclick="list()">点击</a></p>
<p> </p>
<!--只能显示同域的内容,如果访问www.163.com等不同域名的网站则不行-->
<iframe id="ali" src="f.html" width="1024" height="500"></iframe>
<div id="content"></div>
</body>
</html>
- js获取iframe中的内容 兼容火狐&&ie6
- IE6-8 火狐兼容的IFRAME写法
- JS 获取页面中iframe中的内容
- 解决火狐iframe自适应高度,兼容IE6、7、8
- 用Javascript获取Iframe中的内容(兼容IE&firefox)
- js操作Iframe(获取Iframe中的节点内容)
- 获取iframe中的内容
- Javascript获取IFrame内容(兼容IE&FF)
- Javascript获取IFrame内容(兼容IE&FF)
- Javascript获取IFrame内容(兼容IE&FF)
- js获取iframe的内容
- jq获取iframe中的内容
- 根据iframe页面的大小动态调整页面(兼容IE6及以上版本 chrome 火狐)
- ie6 ie8 火狐样式兼容
- JS操作Iframe获取到Iframe中的内容+ListView+DataPager分页
- JS复制内容到剪切板(兼容IE&火狐)
- JS复制内容到剪切板(兼容IE&火狐)
- js获取iframe内的内容
- 一个Makefile
- JPA注解详解三
- kill 掉oracle用户的session
- 搜索引擎爬虫蜘蛛的UserAgent收集
- Ubuntu 中文编码设置
- js获取iframe中的内容 兼容火狐&&ie6
- F5
- 程序员在上海(6)
- CUDA开发环境搭建
- Struts2中Action访问Servlet API的两种方法
- http://write.blog.csdn.net/postlist
- 如何在网页中添加MSN和QQ等即时通讯的链接
- vb.net CRC计算-----CRC_CCITT
- jtextpane的使用方法