在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(框架)名

解决方案 »

  1.   

    想在左边页面点击后,打开右边一个页面,然后在右边页面的一个控件上面显示我的内容。
    下面这样写处么不能显示啊(现象:右边页面显示了一下就又没有了)function SendValue(str){
       window.open("ShowMessage.jsp",'fShowMessage');
       alert(str);
       top.fShowMessage.mytext.value=str;
       }
      

  2.   

    正解1、window.open("b.jsp?参数=参数值","","") 在b.jsp 
    request.setCharacterEncoding("GB2312");//有的版本的Tomcat没有它中文无法正常显示if(request.getParameter("参数")!=null&&request.getParameter("参数")!=""){
    String 定义变量 = request.getParameter("参数");
    }
    来人接分了!
      

  3.   

    <a href="javascript:" onclick="parent.frame[1].location.href='yahoo.com'">树结点</a>