I have tried several "Bookmark this Page" (= control+D) codes but it seems that they only work for certain browsers, mostly Explorer. Is there a uniform code for a bookmark text link that works with at least Explorer, Netscape, Firefox, and Safari?
Bookmark Text Link for all browsers
Collapse
X
-
The following javascript should work in IE, Firefox (and probably Netscape). I don't have Safari here to test it, nor Opera.
<script>
function addMyBookmark(title,url) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
</script>
and you call it from a link such as :
<a onClick="addMyBookmark(document.title, location.href);">link</a>rRhino.com ...social networking for book fans... -
Hmmm Im going to give this a try..The Sexiest place to Buy & Sell Adult Ads - JuicyAds is where YOUR profits matter!

---> SPOTS AVAILABLE :|: SIGN UP RIGHT NOW <---
Comment
-
-
i'm sure it's not perfect, but it supports the majority of the browsers my traffic contains. it was a combination of a few solutions found elsewhere. maybe if someone has something better, they can post it later; but for now, this works well for me in the IE and Mozilla based browsers (and some others)rRhino.com ...social networking for book fans...Comment

Comment