加个if CONFORM("是否设置为首页") ......

解决方案 »

  1.   

    <a href='###' onclick="javascript:document.body.style.behavior='url(#default#homepage)';document.body.setHomePage('http://www.sina.com.cn');" style='target: ' _self?>将本站设为首页</a>
      

  2.   

    <a href="http://www.sina.com.cn" onclick="this.style.behavior='url(#default #homepage)';this.sethomepage ('http://www.sina.com.cn');return false;">将本站设为首页</a>
      

  3.   

    呵呵,估计你是拷贝的代码!
    首先<a href="http://www.sina.com.cn">将本站设为首页</a>  明显就是个连接!
    你应该把设为首页的代码放在这个连接内!
    正确代码:<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.sina.com.cn');">设为首页</a>