Languages :: DHTML, JScript :: how to bookmark (make a favorite) a page in a standard way using javascript ? |
|||
| By: Josdeveld |
Date: 27/03/2006 12:52:48 |
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 | 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 |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








