原文发布时间为:2009-05-05 —— 来源于本人的百度文章 [由搬家工具导入]

第一个文件 frame1.html

<!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 type="text/javascript">
function setIframe()
{
   var f=document.getElementById("newframe");
   f.style.display="inline";
   f.src="frame2.html";
}
</script>
</head>

<body>
<p>这个是第一个页面。。。。</p>
<p>
<input type="button" onclick="setIframe()" value="单击载入第二个页面" />
<iframe align="center" frameborder="0" marginheight="0" marginwidth="0" name="relnews"
                id="newframe" scrolling="no" style="width: 100%; height: 100%;display:none">
</iframe>
</p>
</body>
</html>

第二个文件frame2.html

<!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 type="text/javascript">
function setIframe()
{
   var f=document.getElementById("newframe");
   f.style.display="inline";
   f.src="http://hi.baidu.com/handboy";
}
</script>
</head>

<body>
这是第二个页面。。。。下面的载入是网址,是模仿了跳转功能,这样跳转不会被拦截
<p>
<p>
<input type="button" onclick="setIframe()" value="单击载入第三个页面" />
<iframe align="center" frameborder="0" marginheight="0" marginwidth="0" name="relnews"
                id="newframe" scrolling="no" style="width: 100%; height: 100%;display:none">
</iframe>
</p>
<iframe align="center" frameborder="0" marginheight="0" marginwidth="0" id="newframe" scrolling="no" style="width: 100%; height: 100%;display:none">
</iframe>
</p>
</body>
</html>

最新文章

  1. 解决VS2015启动界面卡在白屏的处理方法
  2. android 的数学公式图片转换
  3. Oracle加密表空间进行数据加密的示例
  4. tf.slice可以用于矩阵也就是图片的切割
  5. 转:Hide data inside pointers(在指针中隐藏数据)
  6. Cmake中的find_package功能
  7. [转]C# 中的.pdb/ .vshost.exe/ .vshost.exe.manifest文件讨论
  8. 已知要闪回的大致时间使用基于as of scn的闪回查询
  9. Python学习笔记5-字符串、bool、数值操作和数组字典排序
  10. iOS的图表显示的实现
  11. Unity3D在NGUI中使用mask
  12. saiku的源码包Bulid常见问题和jar包
  13. 我们身边那些优秀的.NET开发者-
  14. 最小化spring XML配置,Spring提供了4种自动装配策略。
  15. 接口工具之postman
  16. elk之elasticsearch(二)
  17. ThinkPHP5下自己写日志
  18. JavaScript 移动和触摸框架
  19. VBA注释临时
  20. [图解tensorflow源码] Graph 图模块 —— Graph Loading

热门文章

  1. MySql主从同步笔记
  2. Linux dmidecode命令
  3. web项目中无法开启或404
  4. Fliptile POJ - 3279 (开关问题)
  5. 7、python中的字典
  6. UVA_10653 公主与王子 #刘汝佳DP题刷完计划
  7. IQueryable与IEnumerable区别
  8. java十分钟速懂知识点——System类
  9. Careercup - Microsoft面试题 - 4639756264669184
  10. 47.关于gradle的解疑