Forum Moderators: open
I've seen scripts that claim to work on other browsers including Firefox, but what they do is open up the side panel and the user still needs to create the bookmark manually. If you want to display such a link, I would suggest scripting it so that in only displays in IE -- and then call it "Add to Favorites" which is Microsoft-speak (they like to rename things.)
<script type="text/javascript">
function bookmarksite(title,url){
if (window.sidebar)
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)
window.external.AddFavorite(url, title);
}
</script>
And then:
<a href="javascript:bookmarksite('Your Website', 'http://www.example.com')">Add</a>
dc
[edit] Sorry, that does the sidebar thing too. Looks like it has to be the sidebar.