添加到收藏夹

<script type="text/javascript" language="javascript">
    function addFavorite() {
        //判断当前浏览器是否是IE
        if (document.all) {
            //收藏当前页,收藏标题:ASP.NET 实例精
            window.external.addFavorite(window.location.href, 'ASP.NET 实例精讲');
        }
        //判断当前浏览器是否是Firefox
        else if (window.sidebar) {
            //收藏当前页,收藏标题:ASP.NET 实例精
            window.sidebar.addPanel('ASP.NET 实例精讲', window.location.href, "");
        }
 
    }
   
</script>
posted @ 2013-01-07 21:30  程序有Bug  阅读(144)  评论(0编辑  收藏  举报