<!DOCTYPE html>
<html> <head> <meta charset="utf-8" /> <title>窗口与框架</title> <script type="text/javascript"> window.οnlοad=iniall; function iniall(){ for(var i=0;i<document.links.length;i++){ document.links[i].οnclick=setcotant; document.links[i].thisPage=i+1; } } function setcotant(){ var newtext="<h1>you are now....."+this.thisPage+"<\h1>" document.getElementById("icotant").contentWindow .document.body.innerHTML=newtext; return false; } </script> <style type="text/css"> body{ background-color: #fff; height: 2000px; } iframe#icotant{ position: fixed; border: 2px solid black; width: 400px; height: 400px; margin:200px; } </style> </head> <body> <iframe src="new_file104.html" name="icotant" id="icotant" > </iframe> <h1>A realy important page </h1> <h3> <a href="new_file105d.html">link1</a><br /> <a href="new_file104.html">link2</a><br /> <a href="new_file105d.html">link3</a> </h3> </body></html>
JavaScript
发布日期:2021-06-24 07:07:08
浏览次数:4
分类:技术文章
本文共 955 字,大约阅读时间需要 3 分钟。
转载于:https://www.cnblogs.com/webph/p/5107632.html
转载地址:https://blog.csdn.net/weixin_30896763/article/details/99501744 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
感谢大佬
[***.8.128.20]2024年04月16日 00时59分51秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
LeetCode 1018. 可被 5 整除的二进制前缀
2019-04-28
LeetCode 961. 重复 N 次的元素
2019-04-28
LeetCode 925. 长按键入(双指针)
2019-04-28
LeetCode 1309. 解码字母到整数映射
2019-04-28
动态规划应用--最长递增子序列 LeetCode 300
2019-04-28
LeetCode 53. 最大子序和(动态规划)
2019-04-28
图Graph--拓扑排序(Topological Sorting)
2019-04-28
图Graph--最短路径算法(Shortest Path Algorithm)
2019-04-28
LeetCode 674. 最长连续递增序列
2019-04-28
LeetCode 70. 爬楼梯(动态规划)
2019-04-28
数据结构--位图 BitMap
2019-04-28
朴素贝叶斯算法--过滤垃圾短信
2019-04-28
向量空间 Vector Space -- 推荐系统
2019-04-28
B+树 -- MySQL数据库索引
2019-04-28
A*搜索算法--游戏寻路
2019-04-28
我把公众号所有的精华文章都整理出来了
2019-04-28
ROS中的坐标系规定及数据单位
2019-04-28
MATLAB - 三维图绘制
2019-04-28
C++语法例程速查笔记(个人笔记)
2019-04-28
ROS学习过程中的错误记录5 - sw2urdf导出功能包的编译错误
2019-04-28