Forum Moderators: open
function addBookmark(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;
}
}
html:
<a href="#" onclick="addBookmark('Your Page Title', 'http://www.your_address.com')">add to favorites</a>
<script type="text/javascript">
var IEstring = "<a href='javascript:window.external.AddFavorite"
IEstring += "(location.href,document.title);'>Click here to bookmark the page!<\/a>" ;
var NSstring = "Click [Ctrl + D] to bookmark the page!";
var OTHstring = "Remember to bookmark the page!"
var whichString = OTHstring ;
var agt = navigator.userAgent.toLowerCase();
var app = navigator.appName.toLowerCase();
var ieAgent = agt.indexOf('msie');
var nsAgent = app.indexOf('netscape');
if (ieAgent!= -1) {
whichString = IEstring;
} else if (nsAgent!= -1){
whichString = NSstring;
}
document.write(whichString)
</script> /claus
I had 1880 visits since Aug 15. (that's when I added the "add to bookmarks" link)
This whole month I had 3207 visits.
AwStats claims that 317 / 2449 visitors added my site to favorites. (I don't understand why out of 2449 if I had 3207 all together... weird)
I checked my logs and found 4 different visitors came to my site with?f=b string attached to the URL. That means at least 4 people used "add to bookmarks" link on my website.
While writing this I came up with something. I think "add to bookmarks" sounds cheesy and a little spammy. I was thinking to write something different - less trivial. Something like "remember this website" or "save this website" or something similar. Maybe then users would be more willing to click it.
Also I have to disagree with Reflection. It might look funny to someone very experiences online. But some people still type URLs into search engines and double click links. Someone might not know how to add to favourites. Or just lazy to go to the menu and click the menu option.
Also I have to disagree with Reflection. It might look funny to someone very experiences online. But some people still type URLs into search engines and double click links. Someone might not know how to add to favourites.
If they dont know how to add a site to favorites chances are they will not know how to find the site in their favorites after its bookmarked. After all it says "add to favorites" first thing in the favorites menu :)