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

New Improved Search!

 


The DDRK link is back online.
We got a one week service interruption, sorry.
(23-30/01/2010)

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

 Add This Article To:
 del.icio.usDel.icio.us  diggDigg  googleGoogle  spurlSpurl
 blinkBlink  wongWong  simpySimpy  yahooY! MyWeb 
EContact
browser fav
page generated in 61.006070 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page