[thelist] How to create bookmark links?

Bill Mason data at data1701d.com
Thu Feb 8 03:17:31 CST 2001


At 04:40 PM 02/07/2001, you wrote:
>Here is what I use (IE only):
>
><SCRIPT LANGUAGE="JavaScript">
><!-- Begin
>if ((navigator.appName == "Microsoft Internet Explorer") &&
>(parseInt(navigator.appVersion) >= 4)) {
>
>var url="http://yousre.site.url";
>var title="Title for favorite";
>
>document.write('<A HREF="javascript:window.ext');
>document.write('ernal.AddFavorite(url,title);" ');
>document.write('onMouseOver=" window.status=');
>document.write("'add to favorites'; return true ");
>document.write('"onMouseOut=" window.status=');
>document.write("' '; return true ");
>document.write('">add to favorites</a>');
>}
>else {
>var msg = "add to your bookmarks";
>if(navigator.appName == "Netscape") msg += " to bookmark this page press
>(CTRL-D)";
>document.write(msg);
>}
>
>// End -->
></script>

I would suggest testing that on an AOL browser, because it probably means 
the link is visible to those AOLers on PCs but the users get a Javascript 
error when they actually click the link.  I had to write more testing into 
my uses of it to exclude the AOL user out of seeing it.

Bill Mason
data at data1701d.com
Dateline: Starfleet
http://www.data1701d.com
http://profile.guru.com/billmason





More information about the thelist mailing list