本帖最后由 AGRNK 于 2009-12-03 19:15:18 编辑

解决方案 »

  1.   

    现在
     function jumpPage(){
        alert("hello");
        //这里需要处理跳转到被的页面
        //....这里怎么写啊
        
      }
    //5秒后跳转
     var id = window.setTimeout("jumpPage()",5000);
      

  2.   

     <script type="text/javascript">
      function jumpPage(){
       // alert("hello");
        //这里需要处理跳转到被的页面
        //....
        parent.location.href="index.jsp";
        
      }
      
      //清除时间限制
      function cto(){
        window.clearTimeout(id);
      }
      
      //5秒出现hello对话框
      var id = window.setTimeout("jumpPage()",5000);
      </script>
      

  3.   

    <input type="button" value="submit" onclick="window.location='http://www.baidu.com'" />
      

  4.   

    window.top.location="http://www.baidu.com";
      

  5.   


    改一下你的方法就行了。
    常用的除了"_top",还有"_self""_blank""_parent",不用解释了吧?
    相当于超链接的target。  function jumpPage(){
      // alert("hello");
        //这里需要处理跳转到被的页面
        //....
        //parent.location.href="index.jsp";
        window.open("index.jsp", "_top");
      } 
      

  6.   

    <script type="text/javascript"> 
      function jumpPage(){ 
      // alert("hello"); 
        //这里需要处理跳转到被的页面 
           window.location='http://www.baidu.com';
        //.... 
        parent.location.href="index.jsp"; 
        
      } 
      
      //清除时间限制 
      function cto(){ 
      window.clearTimeout(id); 
      } 
      
      //5秒出现hello对话框 
      var id = window.setTimeout("jumpPage()",5000); 
      </script>