View Single Post
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: "add this site to your bookmarks" in firefox

 
0
  #2
Apr 4th, 2005
This function appears to work in both:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <script type="text/javascript">
  2. function addBookmark(title,url) {
  3. if (window.sidebar) {
  4. window.sidebar.addPanel(title, url,"");
  5. } else if( document.all ) {
  6. window.external.AddFavorite( url, title);
  7. } else if( window.opera && window.print ) {
  8. return true;
  9. }
  10. }
  11. </script>

I'm using that with this link:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <a href="#"
  2. onmousedown="addBookmark('Williamsons Oldham','http://williamsons-oldham.co.uk/')"><img src="graphics/bookmark.gif" alt="bookmark this page" border=0 /> Bookmark this page</a>
Reply With Quote