Forum Moderators: open

Message Too Old, No Replies

cross-browser Add to Favourites js button

Add to Firefox 2.0/IE 7 Bookmark/Favourites javascript button.

         

eville84

10:00 pm on Dec 4, 2006 (gmt 0)

10+ Year Member



Hi All,

I am wondering if anyone knows of an "Add to favourites" javascript button that works with Firefox 2.0 and Internet Explorer 7.

I have been searching google/webmasterworld for the last 2 hours and can not find a script that suits these needs. I did come accross scripts that claimed to be cross-browser compatable. These showed errors in both ie7 and firefox 2.0.

penders

12:38 am on Dec 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The "Add to Favs" scripts I have come across in the past have all essentially been IE only, along the lines of:

if (window.external) {  
window.external.AddFavorite(location.href, document.title);
}

(...or should that be addFavorite?)

As of XP SP2, this had to be as a result of a direct user action (ie. a click), otherwise IE would block it. Does this work in IE7? Can this action simply be disabled in the browser/security?