如何让超级连接 执行两个操作?
是这样子的:
我将窗口分成两个部分,
<frameset rows= "100,* " FRAMEBORDER=1 BORDERCOLOR=BLUE >
<frame SRC= "A.HTML " NAME= "FIRST " SCROLLING=NO >
<frame SRC= "B.HTML " NAME= "SECOND ">
</frameset>
在A.HTML中有一个超级连接,点击这个连接后,会将另一个页面载入到FIRST中,我希望同时能把另一个页面也载入到SECOND中。
就是让一个超级连接同时实现这两个动作。 我该怎么做?
------解决方案--------------------onclick= 'javascript:..... '
------解决方案--------------------JS
------解决方案--------------------好像有frameset.FIRST.src=....这种东西
------解决方案-------------------- <script language=javascript>
function onsumbit_form1()
{
document.form1.target= '_blank ';
document.form1.action= 'xxx.asp ';
document.form1.submit();
document.form1.target= '_blank ';
document.form1.action= 'yyy.asp ';
document.form1.submit();
}
</script>
<form name= "form1 " method= "post ">
<input type= "text " name= "record " value= " ">
<input name= "提交 " type= "button " id= "提交 " onClick= "onsumbit_form1() ">
</form>
<%
response.write(request( "record "))
%>
注意是 <input name= "提交 " type= "button " id= "提交 " onClick= "onsumbit_form1() ">
不是提交按钮,这个绝对行,我以前用的,你传个N个页都可以的
兄弟,分给我啊,我都快没分问问题了啊!!
------解决方案--------------------FIRST SECOND放在同一个页面中
给这两个框架的页面搞名
再链接上述的页面名
就OK
------解决方案--------------------index.html--- code
<frameset rows= "100,* " FRAMEBORDER=1 BORDERCOLOR=BLUE >
<frame SRC= "A.HTML " NAME= "FIRST " SCROLLING=NO >
<frame SRC= "B.HTML " NAME= "SECOND ">
</frameset>
A.html----code
<!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= " ">
<script language=javascript>
function jump()
{
self.parent.frames[ "SECOND "].location = "C.html ";
self.location = "C.html ";
}
</script>
</HEAD>
<BODY>
<a href= "# " onclick= "jump() "> Jump </a>
</BODY>
</HTML>
B.html---code
<!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= " ">