View Full Version : Cross browser Bookmark code
Hercules
02-09-2007, 04:46 AM
I was looking for some simple code that works in all mayor browsersbut I'm not satified yet.
The closest I got was this code:
http://www.dynamicdrive.com/dynamicindex9/addbook.htm
But when I try it in Firefox, the bookmark opens in a small sidebar instead of the main browser window.
Anybody here got a solution that works better in at least IE + FF (preferably with less lines of code :) )
felgall
02-09-2007, 11:11 AM
You can set bookmarks in Internet Explorer.
You can add them to the sidebar in Firefox.
You can't add them at all in other browsers.
What you have is as universally supported as it gets unless you start displaying the appropriate control character that your visitors should press to set it themselves which differs between browsers as well.
Hercules
02-10-2007, 08:03 AM
Oh well, thats the first thing where IE rules over FF :)
Too bad for the FF users...
felgall
02-10-2007, 12:28 PM
No too bad for the IE users since you could actually use that code to bookmark your page whether your visitors want it bookmarked or not and really get them annoyed at you. That makes it a security hole that Microsoft have not yet patched by disallowing that code.
Bookmarking a page is just a matter of pressing one key combination on the keyboard anyway. For Firefox it is Ctrl-D. Opera used Ctrl-T until version 8.5 and now uses Ctrl-D.
AfroJoJo
02-10-2007, 03:37 PM
I was looking for some simple code that works in all mayor browsersbut I'm not satified yet.
The closest I got was this code:
http://www.dynamicdrive.com/dynamicindex9/addbook.htm
But when I try it in Firefox, the bookmark opens in a small sidebar instead of the main browser window.
Anybody here got a solution that works better in at least IE + FF (preferably with less lines of code :) )
I think that the dynamic drive script is good enough.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.