onclick="parent.leftFrame.tree.focus(parent.rightFrame.getObjectById('focusId').value)"
 脚本这东西容易出错,但只要有耐心,自已一定能比别人更快找到错,建议楼主将以上代码改为函数实现,然后一步步alert 相信很快就能找出错误来onclick="focuNode()" <script>
 function focuNode()
 {
   alert(document.getObjectById('focusId'));
   var id = document.getObjectById('focusId').value;
   alert(document.getObjectById('focusId').value);
   alert( parent.leftFrame.tree);
   parent.leftFrame.tree.focus( id ) ;}
</script>

解决方案 »

  1.   

    ---------test1.html---------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <script language='javascript'>
    function getObjectById(id)
        {
          if (typeof(id) != "string" || id == "") return null;
          if (document.all) return document.all(id);
          if (document.getElementById) return document.getElementById(id);
          try {return eval(id);} catch(e){ return null;}
        }
    function go()
    {
    var id=getObjectById( 'focusId' ).value;
    //parent.leftFrame.tree.focus(id);   <<<<<<<<<<<<<--------提示这里没有权限}</script></head><body>
    <p>聚焦到<INPUT id='focusId' size=5 name="T1">节点<INPUT onclick="go()" type=button value=聚集></p>
    </body>
    </html>