可以用cookie,或window.location='b.htm?param=' + param
参数的获得可以用
function getQueryString ( sProp ) 
{
var re = new RegExp( sProp + "=([^\\&]*)", "i" );
var a = re.exec( document.location.search );
if ( a == null )
return null;
return a[1];
};
alert(getQueryString("param"))

解决方案 »

  1.   

    这又是什么?
    --------------------------
    加载xml文件错误,请跟斑竹联系!!请斑竹生成以下论坛的贴子列表!!
    roomid:304
    typenum:2
      

  2.   

    http://lucky.myrice.com/javascriptexam/QueryString.htm
      

  3.   

    a.htm:<input type=button onclick="window.location='b.htm?x=1111'">b.htm:<script>
    alert(window.location.href.split('?')[1]);
    </script>
      

  4.   

    a.htm:<input type="button" onclick="window.location='b.htm?x=1111'">b.htm:<script>
    alert(window.location.split('?')[1]);
    </script>
      

  5.   

    加载xml文件错误,请跟斑竹联系!!请斑竹生成以下论坛的贴子列表!!
    roomid:304
    typenum:2