Bookmark Reminder | JavaScriptSource

Bookmark Reminder

Dan Kirkpatrick Jun 22, 2000

General

Pops up the "Add to Favorites" bookmark window once a week, or after a predetermined number of days. Firefox/Netscape users are given an alert message to remind them to bookmark the site.


Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: bookmarkReminder.js


Head

Paste this code into the HEAD section of your HTML document.


Leave a Response

(6 comments)

Paul, due to the limitations of these comments, you will need to submit your question to the [a href="http://www.webdeveloper.com/forum/forumdisplay.php?f=3"]JavaScript Forum[/a] for further help.

Lee Underwood Jan 29, 2008

Paul, due to the limitations of these comments, you will need to submit your question to the [a href="http://www.webdeveloper.com/forum/forumdisplay.php?f=3"]JavaScript Forum[/a] for further help.

Lee Underwood Jan 29, 2008

Hi[br /][br /]This script is superb and we have used for a few years already but with internet speeds increasing the way they have we are now finding that the bookmark prompt generated by this script is loading before any of the page content loads.[br /][br /]As a result many users are dropping out completely rather than bookmark a page that they have not yet being able to view.[br /][br /]My question is how do I modify this script to activate only when the page closes (ie: using the <body onUnload="bookmark....> tag.)[br /][br /]Your help on doing this will be really appreciated.[br /][br /]Regards[br /][br /]Paul

Paul Dec 16, 2007

Hi[br /][br /]I am trying to activate this script only when the page unloads but can not get it right.[br /][br /]I know (think) that I need to add a 'function' line or something in the external js file but have no idea what or where to put it in order for it activate only when the page unloads via an 'onUnload' instruction in my <body> tag.[br /][br /]This script is superb and I have been using it for years but am finding that as internet speeds increase the 'Bookmark' prompt loads before any page content does and that many users are closing the prompt and my page in the process.[br /][br /]If it possible to only activate this script when the page unloads I really would appreciate your guidance on how to do this.[br /][br /]Many thanks[br /][br /]Paul

Paul Dec 14, 2007

You would save the code in a text file and give it the extension of ."js". The extension tells the browser what type of kind is in the file. So, using a program like Notepad, you would copy the code and save it as "bookmarkReminder.js". You could use WordPerfect but you need to save it as a text file. It's just usually better to use a text editor.

Lee Nov 21, 2007