我在一个页面中frameset包含了两个窗口
<html> <head> <meta http-equiv="content-type" content="text/type;charset:UTF-8"> </head> <frameset cols="50%,*"> <frame src="a.html"></frame> <frame src="b.html"></frame> </frameset> </html>
在一个子窗口中调用父窗口的属性
a.html
<html> <head> <meta http-equiv="content-type" content="text/type;charset:UTF-8"> <script type="text/javascript"> //button事件 function btn_onclick(){ var showArea=document.getElementById("showTxt"); showArea.value=""; showArea.value+=(window.parent.location.href+"\n"); showArea.value+=window.parent.getVisitedStr(); } function addpage_onload(){ alert(window.parent.location.href); } window.onload=addpage_onload; </script> </head> <body> <button onclick="btn_onclick()" >list page visited</button> </body> </html>
在chrome浏览器中出现错误
Blocked a frame with origin "null" from accessing a frame with origin "null"
查阅资料后得知chorme浏览器对于在文件系统中的主框架相互访问当做异域访问(既认为是不同服务器之间的访问),所以可以在Tomcat中发布后 再用http://127.0.0.1//xxx 的方式访问 或者之间用IE访问
相关推荐
一个的chrome浏览器插件,实现“在新标签页打开此框架功能”。 需要手动拖到扩展程序来安装。
基于Chrome开源提取的界面开发框架,主要是抽取其中的view部分代码,依赖的有他的base、gfx、skia、app部分,我把base分成了base、message_framework、rfc_algorithm,skia用gdiplus替换合并到gfx,app划分到...
chrome错误提示页面
判断是否在框架中打开判断是否在框架中打开判断是否在框架中打开
chrome浏览器禁用javascript的插件
网友下&弦月从google的开源浏览器chrome提取的框架,可应用于pc端桌面开发
众所周知,IE浏览器的性能是很差的,特别在使用诸如 WebQQ 2.0 这样的丰富的网页...2. 在工具栏和扩展中,找到ChromeFrame BHO. 3. 禁用它 另外,卸载Chrome Frame的话,只要在控制面板中像卸载普通软件一样卸载即可。
主要是对chrome UI的源代码进行分析和相关讲解
threejs-inspector, 用于调试 three.js的Chrome devtool扩展 Three.js-检查器three.js 检查器是 Chrome ... 它允许你在网页中查看 Three.js 场景。 你可以从 Chrome 网上商店安装 Three.js Inspector 。它是来自 exc
解决atetimepicker在chrome下位置错误问题
chrome缓存清除扩展程序,通过js清除chrome缓存的api演示
javascript表格导出excel,支持chrome.
ChromeTools 在最新的Google Chrome浏览器中可以使用JavaScript ES6工具。 该存储库可以包含适用于Chrome中任何上下文的工具:浏览器,辅助程序,扩展程序或应用。
node:检查一个文件并打开devtool url在chrome中通过chrome-cli.
Node.js是基于Chrome JavaScript运行时建立的一个平台,实际上它是对Google Chrome V8引擎进行了封装,它主要用于创建快速的、可扩展的网络应用。Node.js采用事件驱动和非阻塞I/O模型,使其变得轻微和高效,非常适合...
可以在Chrome中使用Prettier格式化的扩展程序
js chrome Notification 在windows任务栏上显示消息框
bugger - 提供Chrome Devtools绑定实现在Chrome中调试程序
一个完整的js注入网页的demo,可以直接解压后使用chrome加载该插件,在开发模式下加载文件夹
modulejs是极致模块化的且面向对象的javascript框架,modulejs能让你在简单易用的前提下写出更佳维护性和可重用性的javascript代码。 Features: •HTML document query/traversing/manipulation •Lightweight ...