Navigation Menu

Site Contents
What's New?


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Internet.commerce

Partner With Us
Online Education
Prepaid Phone Card
Corporate Awards
Find Software
Web Hosting Directory
Career Education
Server Racks
Dental Insurance
Condos For Sale
Rackmount LCD Monitor
Auto Insurance Quote
Imprinted Gifts
Cell Phones
Boat Donations

Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


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.


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum]

    
   
       
[optional field]
 
[optional field]

   

Comments feed Comment Feed RSS 2.0

5. From: Paul
How To Activate Script On Page Close
12/16/2007 07:44:12

Hi

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.

As a result many users are dropping out completely rather than bookmark a page that they have not yet being able to view.

My question is how do I modify this script to activate only when the page closes (ie: using the <body onUnload="bookmark....> tag.)

Your help on doing this will be really appreciated.

Regards

Paul

6. From: Lee Underwood (Admin)
01/29/2008 11:46:56

Paul, due to the limitations of these comments, you will need to submit your question to the JavaScript Forum for further help.

3. From: Paul
Activating This Script On unLoad
12/14/2007 20:44:12

Hi

I am trying to activate this script only when the page unloads but can not get it right.

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.

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.

If it possible to only activate this script when the page unloads I really would appreciate your guidance on how to do this.

Many thanks

Paul

4. From: Lee Underwood (Admin)
01/29/2008 11:45:05

Paul, due to the limitations of these comments, you will need to submit your question to the JavaScript Forum for further help.

1. From: sandi
js
11/20/2007 11:52:39

I am new with starting my website. New business and new do it yourselfer to save money. I appreciate this website so much. I am trying to find out when it says save to external file and name example.js

Can this be saved in my word perfect? I don't see in the "save as" .js as an option? Please advise how I save it. The options to save as are word perfect, html, rtf. I dont see a js. Thank you for your help.

2. From: Lee (Admin)
11/21/2007 12:18:15

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.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.