为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

What is the alternate of javascript "window.sidebar.addPanel" in Firefox 28

more options

if (window.sidebar) { // Mozilla Firefox Bookmark

window.sidebar.addPanel(title, url, " ");
} else if( window.external ) { // IE Favorite
window.external.AddFavorite( url, title);

}

if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel(title, url, " "); } else if( window.external ) { // IE Favorite window.external.AddFavorite( url, title); }

所有回复 (3)

more options
more options

Thanks Man, I found those links helpful. But I couldn't found the solution yet. I tried with 'Social Bookmark Service' but still not able to add bookmark. A simple example, just to add a bookmark will be favorable.

Thanks in Advance :)

more options

You can't add a bookmark. You can create a sidebar that loads whatever content the bookmark did. If you need more help than the information provided in the above links, ask in the Add-ons Forum.