第一问:
如果是传递给asp,我还知道,就是使用Request.QueryString("a")和Request.QueryString("b")来调用。但是对html的,我就没有试过了。我可以帮你查查,document.URL和document.URLUnencoded,这个可以需要自己截取!第二问:
关闭网页,就清除的话,那么就不写expires这个,那么它的存活期就是IE的关闭时间。但是这样写会有问题,你写多了就会发现
或者,关闭前用一个程序
document.cookie="同一个名字......;expires=;"第三问:父窗口
father.htm
*********************************************************
<html>
<script>
var childwindowID; //定义本页全局变量function openw(){
   childwindowID = window.open("son.htm","","width=200px;height=50px"); //开子
   childwindowID.Stest.value = Ftest.value;    //子窗口得到父窗口的值
}function changeSon(){
   childwindowID.Stest.value = Ftest.value; 
}
</script>
父窗口<br>
<input type="text" name="Ftest">
<input type="button" value="开窗" onclick="openw();">
<input type="button" value="改子窗口值" onclick="changeSon();">
</html>
*********************************************************
子窗口
son.htm
*********************************************************
<html>
<script>
function changeFather(){
   window.opener.Ftest.value = Stest.value;
}
</script>
子窗口!<br>
<input type=text name="Stest">
<input type=button value="改父窗口" onclick="changeFather()">
</html>
*********************************************************

解决方案 »

  1.   

    能否帮我看看此贴:
    http://www.csdn.net/expert/topic/557/557993.xml?temp=.1337091我用vbs可以,为什么用javascript有问题?
    谢谢
      

  2.   

    第一问的答案:
    <script  language="JavaScript"> 
    function toquery()
    {
      var tmpstr=unescape(window.location.toString());
      var tmp=tmpstr.indexOf('?')
      tmpstr=tmpstr.substring(tmp+1,tmpstr.length);
      var strs=tmpstr.split('&');
      for (var i=0;i<strs.length;i++) eval(strs[i]+";");
    }
    toquery();
    </script> 
    如果是url="winurl.htm?a="+a+"&b="+b,在JavaScript中就可以用变量a和b了。
      

  3.   

    to Sander():
       Reve(仨仁仕)方法是可以的。
       不过可以改进一点。
       var tmpstr=unescape(window.location.toString());
       可以改为
       var tmpstr=unescape(window.location.search);   现阶段我只能找到这个方法了。如果以后找到更好的,我再告诉你!
       你的邮箱!
      

  4.   

    能否帮我解释这句吗 var  tmpstr=unescape(window.location.search); 
      

  5.   

    unescape 函数:
    用于解码用 escape 方法进行了编码的 String 对象。句法
    unescape(charstring) 
    必选项 charstring 参数是要解码的 String 对象
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    window.location.search 就是地址栏上的参数!但是返回后需要截取!
      

  6.   

    是IE中Address栏吗?,能否问一下我要获得当前URL
    如:www.sina.com.cn,我怎样获得它的IP 
    谢谢你们的帮助!!!!
      

  7.   

    这个我不知道了,我只知道在命令行中输入ping www.sina.com.cn