<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head><body>
<iframe name="i" src="1.htm">
</iframe>
<iframe name="i2" src="2.htm">
</iframe>
<input type="button" onClick="alert(window.i.window.document.location);" value="view1"/>
<input type="button" onClick="alert(window.i2.window.document.location);" value="view2"/>
</body>
</html>
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head><body>
<iframe name="i" src="1.htm">
</iframe>
<iframe name="i2" src="2.htm">
</iframe>
<input type="button" onClick="alert(window.i.window.document.location);" value="view1"/>
<input type="button" onClick="alert(window.i2.window.document.location);" value="view2"/>
</body>
</html>
解决方案 »
- Extjs tabpanel内嵌iframe火狐无法显示
- javascript 索引
- JavaScript不能做到的事
- 前台连接数据库
- 有谁能做这个事?用脚本判断系统中打开了多少个模态窗口。并把他们依次曾叠排列。(第一个窗口居中,其他窗口依次left +15 ,top +15)
- 有没有用Javascript开发asp的进来交流一下啊
- javascript函数中写:Response.Write("Why can't i do it <br>"); 出错:'Response'未定义;怎么才能不出错?
- 新手求助,关于js文件的问题,在线等待!!!
- 有誰能幫忙將這兩個函數改成netscape下面可以使用,先謝謝了!!
- jquery无法访问iframe,咋办?
- 处理text控件的onkeypress的时候总是发出“嘟嘟”的声音,请问怎么消除他
- 菜鸟数组问题!
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head><body>
<iframe name="i" src="http://www.sina.com">
</iframe>
<iframe name="i2" src="http://www.163.com">
</iframe>
<input type="button" onClick="alert(window.i.window.document.location);" value="view1"/>
<input type="button" onClick="alert(window.i2.window.document.location);" value="view2"/>
</body>
</html>
为什么这样就得不到了呢?
这句不清楚什么意思吗???只能得到本地的.