visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: DHTML, JScript :: how to bookmark (make a favorite) a page in a standard way using javascript ?


By: Josdeveld Belgium  Date: 27/03/2006 12:52:48  English French  Points: 20 Status: Answered
Quality : Excellent
How to make any browser accept the bookmarking of a given page, like with AddFavorite() which I believe works only in Internet Explorer ?

How to at least make it working using Firefox ?
By: VGR Date: 27/03/2006 12:54:48 French English  Type : Answer
Salut Jos ;-)

Personnellement, je pense que ceci marche et c'est le maximum que je veux faire pour accommoder IE tout en essayant de rester proche du standard :

function browser_favourite(theurl,titre) { if ( navigator.appName != 'Microsoft Internet Explorer' ) if ( (typeof window.sidebar=="object") && (typeof window.sidebar.addPanel=="function") ) window.sidebar.addPanel(titre,theurl,""); else alert('Press CTRL-D(Netscape) or CTRL-T(Opera) to Bookmark'); else window.external.AddFavorite(theurl,titre); }


Do register to be able to answer

EContact
browser fav
page generated in 96.045020 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page