我有一个 frameset的页面叫main.htm,里面有A,B ,C 3个frame 如何实现两个功能。
第一:
我在A frame里面点一个按钮main.htm直接关闭,
第二:
我在B 里面点一个按钮 ,当前页(就是main.htm),直接跳转到 ,
loing.aspx 这个页面!,
请搞手指教,急~!
第一:
我在A frame里面点一个按钮main.htm直接关闭,
第二:
我在B 里面点一个按钮 ,当前页(就是main.htm),直接跳转到 ,
loing.aspx 这个页面!,
请搞手指教,急~!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><frameset rows="*,*" frameborder="NO" border="0" framespacing="0">
<frame src="a.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frame src="b.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
a.html<button onclick="window.parent.opener = null;window.parent.close();">关闭</button>
b.html<button onclick="window.parent.location.href = 'http://community.csdn.net/';">跳转</button>