3个页面
1 index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<frameset rows="*" cols="241,*" framespacing="0" frameborder="NO" border="0">
<frame src="UntitledFrame-2.htm" id="leftFrame" name="leftFrame" scrolling="NO" noresize>
<frame src="Untitled-1.htm" id="rigthmain" name="rigthmain">
</frameset>
<noframes><body>
</body></noframes>
</html>
2 Untitled-1.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
dasssssssssssssssssssssss
</body>
</html>
3 UntitledFrame-2.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<script>
function aa(){
window.parent.rigthmain.location.href="http://www.baidu.com";
}
</script>
<body>
<a onClick=" aa()">a</a>
</body>
</html>
重点解析
window.parent.rigthmain.location.href="http://www.baidu.com";
parent取父框架
rigthmain去子框架
分享到:
相关推荐
今天在一个群中有人问到ie6中使用js的open,发现新窗口中并获取不到session, 经过使用下面的测试代码测试发现,是因为phpsessionid储存是进程级的有效期,只有同一进程才能获取得到,很多人说,open后或是target=”_blank...
var message='<b><font size=5 face=arial color=red><a href="#" target="_blank">请点击进入本站</a></font></b>' //背景色 var backgroundcolor="#eeffee" //0 代表信息永远显示,1 代表信息只显示一段时间,2...
jsp: 代码如下: [removed] window.parent.frames.location.href=”../welcome.en” [removed] java: 代码如下: PrintWriter out = response.getWriter(); out.write(“[removed]window.parent.frames.location.href...
<noframes > 请使用支持 frame 的浏览器或者访问 <a href= "/Tree/SiteMap.htm " target= "_blank "> CSDN 社区地图 </a> </noframes> ...
<body onload="window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)"> 无关闭按钮IE window.open("aa.htm", "meizz", "fullscreen=7"); 统一编码/解码 alert...
<li><input id="cb_agree" name="cb_agree" type="checkbox" value="" />同意<a href="http://download.csdn.net/help" target="_blank">CSDN资源上传协议</a></label> 验证码: ...
e.item.Attributes.Add("ondblclick", "location.href=’../ShippedGrid.aspx?id=" + OrderItemID + "’"); } 双击表格打开新一页 if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ...
<a href="javascript:window.location.reload()" target="content3">隐藏工作台</a> | <a href="javascript:window.location.reload()" target="content3">管理首页</a> | ...
e.item.Attributes.Add("ondblclick", "location.href='../ShippedGrid.aspx?id=" + OrderItemID + "'"); } 双击表格打开新一页 if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType....
WIDTH="100%"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" target="'+target+'" CLASS="ssm2Items">'+text+'</A></FONT></LAYER></ILAYER></TD></TR>')} function addHdr(text) ...
alert(msg.msg)}}function get_ld(){var tmp=window.location.href.split("ld=");if(tmp.length==2){return tmp[1]}return""}var ld="";var init=0;$(function(){ld=get_ld();var get_val=getCookie("save");if(get_...
-- Brand and toggle get grouped for better mobile display --><div class="navbar-header"><button type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" class="navbar-toggle">...
void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,...
<!...--STATUS OK--><html><head>;charset=utf-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><link rel="dns-prefetch" href="//s1.bdstatic...._position:;min-height:100%}#head{padding-bottom:100px;...
e.item.Attributes.Add("ondblclick", "location.href='../ShippedGrid.aspx?id=" + orderItemID + "'"); } 双击表格打开新一页 if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ...
(2)name:例:<a target="selenium_blank60273" href="http://bbs.51testing.com/">软件测试论坛,则selectWindow name='selenium_blank60273' (3)var 25.录制完成之后,经常会出现回放不成功的情况,在这种...
创意支持:<a href="http://www.efangbbs.com" target="_blank">西安工程大学艺纺论坛</a> <a href="http://www.mutoulee.cn" target="_blank">体无完肤</a><br /> ; left:0px; top:0px; z-index:99; ...
-Window的Target属性由字符串类型变为枚举类型,注意更新以前的代码:Target="_self" -> Target="Self", Target="_parent" -> Target="Parent"。 -MenuButton, LinkButton, Button, LinkButtonField的...
-Window的Target属性由字符串类型变为枚举类型,注意更新以前的代码:Target="_self" -> Target="Self", Target="_parent" -> Target="Parent"。 -MenuButton, LinkButton, Button, LinkButtonField的...
location.href(\'index.asp\');</script>\" end if %> -------------------------------------- 3.显示记录 set rs=server.createobject(\"adodb.recordset\") sql=\"select * from biao order by id desc...