一个父和子窗口的问题.
masss 2008-06-19 10:20:41 <html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<title>aaaaaaaaaa</title>
</head>
<frameset rows="90,*" framespacing="0" border="0" frameborder="0">
<frame name="banner" scrolling="no" noresize target="contents" src="main_top.asp">
<frameset cols="260,*">
<frame name="contents" target="main" src="main_left.asp" scrolling="auto" noresize>
<frame name="main" src="main_right.asp" scrolling="auto" target="_self">
</frameset>
<noframes>
<body>
<p>此网页使用了框架,但您的浏览器不支持框架。</p>
</body>
</noframes>
</frameset>
</html>
然后我的main_right.asp内容里面有个代码:
<a href="#" onClick="MyWindow=window.open('../../common/edituser.asp?id=<%=rs("LoginID")%>','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=100,left=200,width=600,height=480');">编辑</a>
点一下弹出来的窗口地址就不对了,edituser.asp这个不见了,直接只有/?ID=111,经过判断,知道是原因应该是获取了父窗的地址,所有没有了edituser?asp,怎么让这个代码获取子窗的啊?(main_right.asp)是子窗,main.asp是父窗!~
谢谢!