日期:2014-05-17  浏览次数:20782 次

点击按钮,然后在指定的窗口中打开的新网页
Main.asp有个iframe.和一个form表单,   iframe的name=bb   表单不在iframe中
A.asp   是处理fm传过来的数据生成传输的参数
url       是我将A.asp中生成的参数要传给的网址,这个url我改不了的.破总公司不给我改了.

现在我想按下main.asp中表单里的按钮,就将A.asp载入到iframe中打开.然后A.asp就转向到url中.当然同时将参数传入

本来我原来用的 <form   action= "a.asp "   target= "bb ".......>
但不知道怎么不行.而用链接的方式 <...   ret= "cc.html "   aaaa   target= "bb "> 却可以
载入到iframe中去

请试过或者已经这样用过这种方式的帮忙.




------解决方案--------------------
在 <body前加这句看看 <base target= "xxx ">

------解决方案--------------------
----------Main.asp-----------
<form action= "zzz.asp " name= "form1 " target= "bb ">
<input name= "aa " type= "text ">
<input type= "submit " name= "sub ">
</form>
<iframe name= "bb " width= "200 " height= "300 " frameborder= "0 " src= "zzz.asp "> </iframe>
-------------------------------------
------------zzz.asp-----------------------
<html>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<title> 无标题文档 </title>
</head>

<body>
<%=request( "aa ")%>

</body>
</html>