Browser Sensitive Bookmark Prompts
Occasionally while surfing, one finds web pages with
"bookmark me" prompts.
Often, these are either
- generic prompts or
- they say something like, "Netscape only" or "IE
only". (The "Netscape only" often has Control-D
instructions and the "IE only" a link or button
to click.)
It takes quite a bit of web page real estate to present
those options. Further, Macintosh computers don't have a
Control key (they use the Command/Apple key instead), and
IE versions we've tested on Macintosh don't bookmark the
same way as on PC.
With this article, you have another choice. You are no
longer limited to either a generic prompt or a huge block
of instructional text. You can have bookmark prompts
customized for the type of browser and computer your
visitor is using.
The JavaScript code on the demonstration page customizes
the "bookmark me" prompt for the browser and computer
requesting the web page. It has complete instructions.
Customization is two simple steps:
- Specify the text prompts you want your visitors to
see when using
- a Macintosh computer,
- IE on a PC,
- Netscape on a PC, and
- another browser version or computer operating system.
- When your visitors are using IE on a PC, specify
whether you want to display a link or a button --
either of which would initiate the bookmarking of
your page.
When the customization is done, just specify where on your
web page to put the custom prompt. That's done with three
lines of JavaScript clearly demonstrated when you "view
source" at the demonstration page.
Question:
Did you find this article interesting and understandable? How can it be improved?
Your response is anonymous.
When done typing, click anywhere outside the box. [more info]
Will Bontrager
©2001 Bontrager Connection, LLC
Please note:
Articles on this website are presented "as is". However -
If you have a question about a CGI script, HTML, CSS, PHP, or JavaScript
Ask one of our Experts and you'll have your answer!
Click here for details.