<script language="JavaScript">function bookmarkit()
{
window.external.addFavorite('http://qqjlb.com/','QQ俱乐部')
}
</<script>
<a href="#" onclick="bookmarkit()">加入收藏夹</a>
-----------------------------------------------------
<a href="javascript:d=document;window.external.AddFavorite(''+d.location.href+'', ''+d.title+'')" target="_self"><font color="#003399">将本页加入收藏夹</font></a>
/////////
< a href =# class =black onClick ="javascript:window.external.AddFavorite(document.URL,document.title);return false" > 收藏本页 </ a >
<span style="CURSOR: hand" onClick="window.external.addFavorite(网站地址','网站名)" title="网站名">收藏本站</span>
本文介绍了一种在网页中实现加入收藏夹功能的方法。通过使用JavaScript与浏览器外部接口交互,可以轻松地让用户将当前页面添加到浏览器收藏夹中。文中提供了不同格式的代码示例。

被折叠的 条评论
为什么被折叠?



