TCH-Thomas Posted August 25, 2004 Posted August 25, 2004 I am looking for a bookmark script which hopefully shows textlink saying "Bookmark this page" for all common browsers. I know there are scripts that will do this in I.E but for netscape etc it usually brings up an alert box reminding the visitor to bookmark. I dont want that if possible. Anyone know if this exist/works? Quote
borfast Posted August 25, 2004 Posted August 25, 2004 I don't think that is possible, Thomas. The possibility for someone to force you to bookmark their website without your confirmation can be considered a violation of privacy so Mozilla/Netscape/Firefox/Opera/Safari/<insert any other decent browsers here> always ask the user first if they really want to bookmark that page. But you never know what's floating around Hotscripts.com Quote
TCH-Thomas Posted August 25, 2004 Author Posted August 25, 2004 The possibility for someone to force you to bookmark their website without your confirmation can be considered a violation of privacy so Mozilla/Netscape/Firefox/Opera/Safari/ always ask the user first if they really want to bookmark that page. Sorry,I dont get that part, Raul. I am not saying anyone should be "forced" to bookmark anything if they dont want too. That is why I need a regular link that opens up their favorites/bookmarks if they click it. I just want to get rid of the (sometimes) auto opening alert box that opens in netscape etc for this issue. Those auto opening boxes I have seen it happens with netscape etc are nasty. I dont want that. Quote
TCH-Bruce Posted August 25, 2004 Posted August 25, 2004 Thomas, I went to Hotscripts and did a search for bookmark scripts. You can use this link to find several. http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=bookmark&catid=26 Quote
TCH-Thomas Posted August 25, 2004 Author Posted August 25, 2004 Thanks Bruce and Raul However, I checked hotscripts, both before I posted the original post and now again, since there could be one I missed. Unfortunately, all those scripts either costs or can not present a clickable link in netscape/mozilla...etc... that a visitor can click to bookmark. There is several that will show a "Press CTRL + D to bookmark us" text, but unfortunately I already have that kind of script. I was hoping for a script that can show same kind of clickable link in netscape/mozilla...etc...as in I.E Quote
borfast Posted August 25, 2004 Posted August 25, 2004 (edited) Thomas, if a page can be bookmarked by simply clicking on a link, then it means the bookmark can be created automatically without any user intervention. Why? Simple: the only way you can make a link as you described is by means of a JavaScript function that gets called when the link is clicked. But any JavaScript function can be called at any time, without any user intervention. By the way, the "Press CTRL+D to bookmark us" doesn't need a script. It's the commonly used key combination to bookmark a web site in a web browser, so if you're wasting your time/space/bandwidth with a script for that, get rid of it Edit: I really have to slow down a bit when reading the forums... Thomas, after a second reading of your post above, I think I didn't get the picture of what you want the first time. You want a link that opens up the favorites/bookmarks if people click it? But that already exists, it's the CTRL+D thingy you mentioned... But you already said that's not what you want... You know, I don't think I got it this time either... Edit #2: Just to make it clear: I know the CTRL+D is not a link but it's the only "standard" shortcut I know of to open the bookmarks dialog... Which makes me think: I got it this time: what you want is a link that, when clicked, does exactly what CTRL+D does, right? Did I get it right this time? Do I get the bicycle? Man, I need to sleep... Edited August 25, 2004 by TCH-Raul Quote
TCH-Thomas Posted August 25, 2004 Author Posted August 25, 2004 lol no, I dont want a sentence saying "Please press CTRL + D to bookmark this page". What I am asking/looking for is a way for a netscape/mozilla/firebird/etc-user to be able to click a link and poof the favorite/bookmark manager pops up. Quote
borfast Posted August 25, 2004 Posted August 25, 2004 Looks like I was a bit slow editing my previous post Read the second "Edit" Quote
TCH-Thomas Posted August 25, 2004 Author Posted August 25, 2004 (edited) Edit:... Edit #2:... Trying to break forum record of editing? Edited August 25, 2004 by Jikrantz Quote
borfast Posted August 25, 2004 Posted August 25, 2004 I tried changing the post before you read it but I was too slow Well, I investigated a bit about this subject and it appears that this is only possible with IE. At least, every script I found was made for IE and I didn't find anything that would even mention other browsers. Quote
TCH-Thomas Posted August 25, 2004 Author Posted August 25, 2004 Well well, thanks anyway for trying Raul I´ll just have to continue with the web standard way. I hope though that the link-option will be a reality someday, since I figure most visitors thinks its easier to click with the mouse than to remember the combination CTRL + D. Quote
TCH-Don Posted August 25, 2004 Posted August 25, 2004 Thomas, I gave up trying to get a non IE browser link to work. The best I can do is display a link for IE and "Don't forget to bookmark us! (CTRL-D)" if it is a non IE browser. Quote
GroovyFish Posted August 25, 2004 Posted August 25, 2004 I happened to be at this page today (using firefox): ht*p://www.villascaribe.com/content/Product-25-1-323.htm They have a bookmark link that appears to work in Firefox. When you click it it brings up a dialog box asking where to put the bookmark (which bookmark folder). You could take a look at how they do it... The only problem I have is when I use the bookmark, it loads the page in a sidebar, not my main browser window, but maybe someone can help you tweak it not to do that. Quote
TCH-Thomas Posted August 25, 2004 Author Posted August 25, 2004 Thanks GroovyFish I had a look at their source code but I understand nothing. But I do want to travel now, so something good came out of it. Quote
rnmcd Posted March 14, 2005 Posted March 14, 2005 Did anyone happen to figure out how to create a link in a page to add the site to your bookmarks (in Firefox and Netscape)? I have seen several scripts that will do it in Internet Explorer only. Quote
yari Posted March 15, 2005 Posted March 15, 2005 Hi, I have built a work-around for this problem. It works in IE, and gives a useful message to those using Firefox or other unsupported browsers. in IE: it add the bookmark to the users choice of folders (as per usual) in Firefox: Tells user that their browser can't save bookmarks, but to try pressing Control + D instead. Put this in the head of your HTML code: <script language="JavaScript" type="text/javascript"> // Bookmark script var urlAddress = "www.******"; var pageName = "Yaris Website Domain"; function addToFavorites() { if (window.external) { window.external.AddFavorite(urlAddress,pageName) } else { alert("Sorry, your browser doesn't support bookmarking this page...\n\nPlease try pressing Control + D instead"); } } </script> And this in the body: <a href="java script:addToFavorites()">bookmark this page</a> Quote
rnmcd Posted March 15, 2005 Posted March 15, 2005 Hello Yari. thanks for the code. Is the window that opens (when a non-Internet Explorer browser is being used) considered a pop-up? I was just wondering if a person has a pop-up blocker enabled will it prevent the alert from displaying? Quote
rnmcd Posted March 15, 2005 Posted March 15, 2005 If anyone else tries this, please tell me if me if worked for you in IE...it didn't for me. But it does display the alert when I use Firefox. Thanks. Quote
TCH-Don Posted March 15, 2005 Posted March 15, 2005 I have yet to find a script that works for mozilla/firefox so this is what I use to display a message for other than IE ><script LANGUAGE="javascript"> <!-- Begin if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { var url="http://www.domain.com"; var title="discription for book mark"; document.write('<A HREF="javascript:window.ext'); document.write('ernal.AddFavorite(url,title);" '); document.write('onmouseover=" window.status='); document.write("'Add our site to your favorites!'; return true "); document.write('"onmouseout=" window.status='); document.write("' '; return true "); document.write('">Add our site to your favorites!</a>'); } else { var msg = "Don't forget to bookmark us!"; if(navigator.appName == "Netscape") msg += " (CTRL-D)"; document.write(msg); } // End --> </script> Welcome tot he forum Yari Quote
rnmcd Posted March 15, 2005 Posted March 15, 2005 Hello Don. I like your script but it doesn't work with the way I have my dynamic menu set up when someone is using Firefox. Has anyone else tried Yari's script in IE? I couldn't get it to work. Quote
rnmcd Posted March 16, 2005 Posted March 16, 2005 Any idea why yari's script doesn't work in IE? Put this in the head of your HTML code: ><script language="JavaScript" type="text/javascript"> // Bookmark script var urlAddress = "www.******"; var pageName = "Yaris Website Domain"; function addToFavorites() { if (window.external) { window.external.AddFavorite(urlAddress,pageName) } else { alert("Sorry, your browser doesn't support this function...\n\Please close this alert and press Control + D to bookmark"); } } </script> And this in the body: ><a href="javascript:addToFavorites()">Bookmark GoToAd</a> Quote
Pendragon Posted March 20, 2005 Posted March 20, 2005 How about this? <a href="java script:window.external.AddFavorite('http://www.example.com', 'My Page Title')">http://www.example.com</a> nm.. just tried it in firefox and it doesn't do anything. Quote
rnmcd Posted March 20, 2005 Posted March 20, 2005 The code in post #23 works if you add "http://" in front of the url. Quote
markellis Posted March 25, 2005 Posted March 25, 2005 <script> function addBookmark(title,url) { //alert('adding ' + title + ', ' + url); if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if( document.all ) { window.external.AddFavorite( url, title); } else if( window.opera && window.print ) { return true; } } </script> <a href="java script:void(addBookmark('Link Title','http://www.linky.com'));">Bookmark (Ctrl-D)</a> Quote
TCH-Don Posted March 25, 2005 Posted March 25, 2005 Welcome to the forum, markellis thanks for the code. Quote
psp602 Posted April 9, 2005 Posted April 9, 2005 Hi to all of you! I don't know how old is this thread but I decided to help (I signed up just to answer here) since I had this problem as long as I remember my self as a designer. Please take a look at this very, very, very helpful site: http://www.dynamicdrive.com. I know this site for almost 3 years now and it helped me lot's of times. In particular check here (the last 4-5 results): http://www.dynamicdrive.com/dynamicindex9/index.html!! Quote
TCH-Thomas Posted April 9, 2005 Author Posted April 9, 2005 Welcome to the forum psp602. Unfortunately the last one of your above links does not work. Quote
OldTimer Posted April 9, 2005 Posted April 9, 2005 He had a ! at the end of the url http://www.dynamicdrive.com/dynamicindex9/index.html This script from that page does work with firefox. http://www.dynamicdrive.com/dynamicindex9/addbook.htm Greg Quote
TCH-Thomas Posted April 9, 2005 Author Posted April 9, 2005 I just tried this script and it works very well. Thanks psp602 for finding it. Quote
borfast Posted April 9, 2005 Posted April 9, 2005 Welcome to the forum, psp602. And thanks for pointing the script Quote
psp602 Posted April 11, 2005 Posted April 11, 2005 Thank you all of you! Sorry for the mistake Thomas! Keep as treasure the dynamicdrive.com url! As I said, it helped me a lot!! And to be honest, a friend of mine told me about DD. Thought to pass it to all of you like he did. That's all! Quote
TCH-Thomas Posted April 11, 2005 Author Posted April 11, 2005 No problem, psp602. Yes, DD is a nice place. I have found lots of good things there through the years but completely missed that script. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.