What is the alternate of javascript "window.sidebar.addPanel" in Firefox 28
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);
}
All Replies (3)
You can use the social API or you can create an extension.
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 :)
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.