PC Review


Reply
Thread Tools Rate Thread

Bookmark Code - NETSCAPE

 
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      4th Nov 2005
Hello:
I posted this question earlier and got help with the code necessary to
display Bookmark variations for different browsers:
a hyperlink for IE, and "Ctrl + D" for Netscape and FireFox

For some reason the code works fine in IE and FireFox but absolutely refuses
to work in Netscape:

<script type="text/javascript">
if ((navigator.appName == "Microsoft Internet Explorer") &&
(parseInt(navigator.appVersion) >= 4)) {
var url="http://www.mywebsite.com/";
var title="Description";
document.write('<A HREF="javascript:window.external.AddFavorite(url,title)');
document.write('"<font color=#FFFFF4 face=tahoma size=8pt><b>Click to
Bookmark</b></font></a>');}
else {var alt = "<font color=#FFFFF4 face=tahoma size=2pt><b>To
bookmark<b/></font>";
if(navigator.appName == "Netscape") alt += "<font color=#FFFFF4 face=tahoma
size=2pt><b> - Ctrl+D<b/></font>";
document.write(alt);}
</SCRIPT>

Does anyone know why Netscape does not like this code?

Thank you!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Code to go to one Bookmark. Juan Microsoft Excel Programming 1 22nd Apr 2008 09:26 PM
Code Bookmark Diarmuid Microsoft VB .NET 6 9th Sep 2005 06:37 PM
Netscape Bookmark file disappearted after last update Csqepaul Windows XP General 2 26th Jul 2004 07:12 PM
NetScape Icon Appears when I bookmark thru IE don Windows XP Internet Explorer 0 4th Nov 2003 07:31 PM
Tool to convert Netscape Bookmark into Explorer Favorite Benoit Windows XP Internet Explorer 1 25th Oct 2003 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:24 AM.