在button中添加处理方法
<input type="button" onclick=p()>
一个可能的写法可以是:
function p(){
var o=window.open("1.html");
o.frames["iframe1"].location="2.html";}但这个问题 一直报错 frames.iframe1 为空后不是对象。大家有没有更好的方法。。
<input type="button" onclick=p()>
一个可能的写法可以是:
function p(){
var o=window.open("1.html");
o.frames["iframe1"].location="2.html";}但这个问题 一直报错 frames.iframe1 为空后不是对象。大家有没有更好的方法。。
1.html<script>
window.onload=function()
{
window.frames["iframe1"].location=location.split("=")[1];
}
window.open("1.aspx?x=2.html");1.aspx里面可以直接
<iframe src="<%=Request.QueryString["x"]%>"
我的地址本来就带参数怎么办 2.aspx?id=1
Request.Params["id"]
Request.Params["name"]
接收
window.frames["iframe1"].location=location.split("=")[1]+"?id=2";