Search

2/06/2007

javascript: 加入書籤的方法

Mozilla Taiwan 討論區: Javascript「加入書籤」語法
for Firefox: window.sidebar.addPanel

<a href="javascript:window.sidebar.addPanel(document.title, location.href, '')">foo</a>

for IE: window.external.AddFavorite
<a href="javascript:window.external.AddFavorite(location.href, document.title);">bar</a>

沒有留言: