这位大哥,这是公司的需要,要将所有客户端的IE默认的主页设置为公司的OA主页!

解决方案 »

  1.   

    试试这个:把如下代码加入<body>区域中
    <span onclick="var strHref=window.location.href;
    this.style.behavior='url(#default#homepage)';
    this.setHomePage('http://www.njcatv.net');"
    style="CURSOR: hand">
    <br>将本站设置为首页</br>
    </span>
      

  2.   

    <html>
    <HEAD><SCRIPT>
    function fnSet(){
    pp.setHomePage(oHomeHref.value);
    event.returnValue = false;
    }
    </SCRIPT>
    </HEAD>
    <BODY id=pp style='behavior:url(#default#homepage)'><INPUT TYPE=text ID=oHomeHref VALUE="http://www.microsoft.com">
    <INPUT TYPE=button VALUE="Set" onclick="fnSet()">
    </BODY>
    </HTML>