PDA

View Full Version : How do I set a bookmark request


harv
02-06-2002, 16:09/04:09PM
I woud like to invite visitors to a page to
"Bookmark this page".

I believe there is some javascript to do it. I found some
code by searching on the Net but it only seems to
work for IE, not Netscape.

Any ideas please ?

Thanks
Harvey

Mertu
03-06-2002, 13:58/01:58PM
The JavaScript function "window.external.AddFavorite" only works in IE 4 and above.

There's no equivalent in Netscape. Netscape users will need to bookmark the page manually.


Sean

harv
03-06-2002, 23:22/11:22PM
Originally posted by Mertu


There's no equivalent in Netscape. Netscape users will need to bookmark the page manually.


Sean


Sean,

I've now done some searching on the Net and found this
code which at least tells the user to manually
bookmark it.

I guess this may be the standard way to do it.

Harvey




=======================================


if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
=======================================

Mertu
04-06-2002, 12:47/12:47PM
Yep, that's the basic code.

Of course, there are dozens of variations to be found if you search on "window.external.AddFavorite".


Sean

ihelpyou
04-06-2002, 13:03/01:03PM
Simply view the 'source code' for the very front page of these forums. You will see the 'bookmark' code I am using. Click on the word "bookmark" at the top of the forums front page to see what happens.

Just simply copy and paste the code. I have searched a bunch to find the best "bookmark" code to use, and the one in here is the best of the best. You can customize the title that shows up in the bookmark as well as customize the link text that shows up as well. If a browser is Netscape, it simply says as much to bookmark the site.

Very customizable.

You can also use any url you wish to use in the code for the bookmark. It does not have to be the url the code is in. If the code is in a regular .htm page, you can have the bookmark point to the very front page. It makes no difference what url you tell it to use.

harv
04-06-2002, 13:22/01:22PM
Actually Doug for the Netscape part of this I prefer
the version I found (above), with the field 'netscape'
used like this

netscape="First push OK and then hit CTRL+D to add a bookmark to this site."

Then the visitor see an actual clickable link as opposed
to a plain text instrction.


Harvey

ihelpyou
04-06-2002, 13:25/01:25PM
That's fine, but not as customizable. I'll take the code in here many times over that piece of code.

harv
04-06-2002, 13:48/01:48PM
Ah, but when I used NETSCAPE on your
home page I was not tempted to click
on the bookmark text,

however at my page
http://www.clickbankguide.com/calculator.htm
I just can't stop clicking.


Harvey

ihelpyou
04-06-2002, 17:18/05:18PM
Okay. Use what you want harv. :)