能否更详细一点儿,有点儿理解不了
追答给你如下三个页的测试代码.
a.htm
LINK
b.htm
This is B.
document.getElementById('iframe_id').src=location.search.substr(1);
d.htm
This is D.
那么用JSP怎么实现啊
追答jsp的话首先链接中加一个参数B.jsp?flag=true
B页面中String flag = request.getParameter("flag")==null?"":request.getParameter("flag");
然后onload中调用js函数,函数中这么写
if(''=='true'){
B页面子页面.src = XX;//假设子页面是个frame
}