在Tree.html页面写方法:
<script>
function openGoogle(){
window.open("http://www.google.com",'fmyshow');
}
function openYahoo(){
window.open("http://www.yahoo.com.cn",'fmyshow')
}
</script>
<input type="button" id="11" value="cc" onClick="openGoogle();"/>
<input type="button" id="22" value="22" onClick="openYahoo();"/>注:
window.open("http://www.yahoo.com.cn",'fmyshow')这里的'fmyshow'是主页面里面定义的右页面的frame(框架)名
<script>
function openGoogle(){
window.open("http://www.google.com",'fmyshow');
}
function openYahoo(){
window.open("http://www.yahoo.com.cn",'fmyshow')
}
</script>
<input type="button" id="11" value="cc" onClick="openGoogle();"/>
<input type="button" id="22" value="22" onClick="openYahoo();"/>注:
window.open("http://www.yahoo.com.cn",'fmyshow')这里的'fmyshow'是主页面里面定义的右页面的frame(框架)名
下面这样写处么不能显示啊(现象:右边页面显示了一下就又没有了)function SendValue(str){
window.open("ShowMessage.jsp",'fShowMessage');
alert(str);
top.fShowMessage.mytext.value=str;
}
request.setCharacterEncoding("GB2312");//有的版本的Tomcat没有它中文无法正常显示if(request.getParameter("参数")!=null&&request.getParameter("参数")!=""){
String 定义变量 = request.getParameter("参数");
}
来人接分了!