location.href="welcome.html?a=123&b=456"

解决方案 »

  1.   

    可以用url传值 或 post请求
      

  2.   

    可location.href="welcome.html";这个我是写在js里面的,也可以吗???我在welcome.html的js里面怎么得到值???request.getPram....这个可以???
      

  3.   

    如果是弹出窗口 可以传递 对象window.showModalDialog(sURL [, vArguments] [, sFeatures])window.showModelessDialog(sURL [, vArguments] [, sFeatures])
      

  4.   

    URL传递变量
    在接收而再进行解析
      

  5.   

    window.showModelessDialog
    是可以传递数组对象的
    其他方式貌似不好办
      

  6.   

    location.href="welcome.html?list"=+list;可以这样传??可到了welcome.html要怎样解析???
      

  7.   

    楼主8楼的方法基本OK,然后下一页用location.search获取整个串,再分割,最好全部进行URL编码
      

  8.   

    一时没看清,楼主8楼的=号写错了,应该是window.location="welcome.html?list=" + list + "&aa=" + aa;顺便把我用的接收函数给你,不过进行编码的function request(name){
    var reg=location.search.match( "(?:&|^\\?)" + name + "=([^&]*)(?:&|$)" ); return reg ? reg[1] : "";
    }
      

  9.   

    谢谢你们,问题已经解决。。用cookie传很简单。。
      

  10.   

    url,cookie,userData(IE,FF2.0)都可以解决