PC Review


Reply
Thread Tools Rate Thread

Bookmark Code for All Browsers

 
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      29th Oct 2005
Hello:
I am trying to add a hyperlink to my website so that visitors will be able
to bookmark my site by clicking on it.
I know which code works for IE:
<A
HREF="javascript:window.external.AddFavorite('http://www.myswebsite.com','PHP
Freaks')">Bookmark this Site!</A>

BUT it does not work for Netscape and FireFox.

Does anybody know how to make the same work for Netscape and FireFox?

Thank you very much!
 
Reply With Quote
 
 
 
 
Bob Lehmann
Guest
Posts: n/a
 
      29th Oct 2005
Google for add to favorites script.

Bob Lehmann

"Dave" <(E-Mail Removed)> wrote in message
news:0F7AD2BC-D2D0-4C2E-882A-(E-Mail Removed)...
> Hello:
> I am trying to add a hyperlink to my website so that visitors will be able
> to bookmark my site by clicking on it.
> I know which code works for IE:
> <A
>

HREF="javascript:window.external.AddFavorite('http://www.myswebsite.com','PH
P
> Freaks')">Bookmark this Site!</A>
>
> BUT it does not work for Netscape and FireFox.
>
> Does anybody know how to make the same work for Netscape and FireFox?
>
> Thank you very much!



 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      29th Oct 2005
<SCRIPT language="JavaScript">
<!--
if ((navigator.appVersion.indexOf("MSIE") > 0)
&& (parseInt(navigator.appVersion) >= 4)) {
document.write("<a href='#' onclick='window.external.
AddFavorite(location.href, document.title);'>
Add this page to your favorites!</a>");
}
file://-->
</SCRIPT>

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Dave" <(E-Mail Removed)> wrote in message
news:0F7AD2BC-D2D0-4C2E-882A-(E-Mail Removed)...
> Hello:
> I am trying to add a hyperlink to my website so that visitors will be able
> to bookmark my site by clicking on it.
> I know which code works for IE:
> <A
> HREF="javascript:window.external.AddFavorite('http://www.myswebsite.com','PHP
> Freaks')">Bookmark this Site!</A>
>
> BUT it does not work for Netscape and FireFox.
>
> Does anybody know how to make the same work for Netscape and FireFox?
>
> Thank you very much!



 
Reply With Quote
 
Jens Peter Karlsen [FP-MVP]
Guest
Posts: n/a
 
      30th Oct 2005
How is that going to work in Netscape and Firefox as asked about?

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

On Sat, 29 Oct 2005 16:35:56 -0400, "Steve Easton"
<(E-Mail Removed)> wrote:

><SCRIPT language="JavaScript">
><!--
>if ((navigator.appVersion.indexOf("MSIE") > 0)
>&& (parseInt(navigator.appVersion) >= 4)) {
>document.write("<a href='#' onclick='window.external.
>AddFavorite(location.href, document.title);'>
>Add this page to your favorites!</a>");
>}
>file://-->
></SCRIPT>

 
Reply With Quote
 
Jens Peter Karlsen [FP-MVP]
Guest
Posts: n/a
 
      30th Oct 2005
Not possible.
Usually people write "Press CTRL-D to bookmark this page" on the page.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

On Sat, 29 Oct 2005 12:44:03 -0700, "Dave"
<(E-Mail Removed)> wrote:

>Hello:
>I am trying to add a hyperlink to my website so that visitors will be able
>to bookmark my site by clicking on it.
>I know which code works for IE:
><A
>HREF="javascript:window.external.AddFavorite('http://www.myswebsite.com','PHP
>Freaks')">Bookmark this Site!</A>
>
>BUT it does not work for Netscape and FireFox.
>
>Does anybody know how to make the same work for Netscape and FireFox?
>
>Thank you very much!

 
Reply With Quote
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      30th Oct 2005
Thank you all your help, Steve!

"Steve Easton" wrote:

> <SCRIPT language="JavaScript">
> <!--
> if ((navigator.appVersion.indexOf("MSIE") > 0)
> && (parseInt(navigator.appVersion) >= 4)) {
> document.write("<a href='#' onclick='window.external.
> AddFavorite(location.href, document.title);'>
> Add this page to your favorites!</a>");
> }
> file://-->
> </SCRIPT>
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> ........................with a computer
>
> "Dave" <(E-Mail Removed)> wrote in message
> news:0F7AD2BC-D2D0-4C2E-882A-(E-Mail Removed)...
> > Hello:
> > I am trying to add a hyperlink to my website so that visitors will be able
> > to bookmark my site by clicking on it.
> > I know which code works for IE:
> > <A
> > HREF="javascript:window.external.AddFavorite('http://www.myswebsite.com','PHP
> > Freaks')">Bookmark this Site!</A>
> >
> > BUT it does not work for Netscape and FireFox.
> >
> > Does anybody know how to make the same work for Netscape and FireFox?
> >
> > Thank you very much!

>
>
>

 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      30th Oct 2005
It's right out of the MSDN library.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Jens Peter Karlsen [FP-MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How is that going to work in Netscape and Firefox as asked about?
>
> Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
>
> On Sat, 29 Oct 2005 16:35:56 -0400, "Steve Easton"
> <(E-Mail Removed)> wrote:
>
> ><SCRIPT language="JavaScript">
> ><!--
> >if ((navigator.appVersion.indexOf("MSIE") > 0)
> >&& (parseInt(navigator.appVersion) >= 4)) {
> >document.write("<a href='#' onclick='window.external.
> >AddFavorite(location.href, document.title);'>
> >Add this page to your favorites!</a>");
> >}
> >file://-->
> ></SCRIPT>



 
Reply With Quote
 
Bob Lehmann
Guest
Posts: n/a
 
      30th Oct 2005
All this will do is check for IE and provide a link only if the browser is
IE version >=4.

Perhaps Google the link I provided.

Bob Lehmann

"Steve Easton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> It's right out of the MSDN library.
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Jens Peter Karlsen [FP-MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > How is that going to work in Netscape and Firefox as asked about?
> >
> > Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
> >
> > On Sat, 29 Oct 2005 16:35:56 -0400, "Steve Easton"
> > <(E-Mail Removed)> wrote:
> >
> > ><SCRIPT language="JavaScript">
> > ><!--
> > >if ((navigator.appVersion.indexOf("MSIE") > 0)
> > >&& (parseInt(navigator.appVersion) >= 4)) {
> > >document.write("<a href='#' onclick='window.external.
> > >AddFavorite(location.href, document.title);'>
> > >Add this page to your favorites!</a>");
> > >}
> > >file://-->
> > ></SCRIPT>

>
>



 
Reply With Quote
 
Bob Lehmann
Guest
Posts: n/a
 
      30th Oct 2005
How did this solve your problem? Non-IE version >=4 will not see the link.

Bob Lehmann

"Dave" <(E-Mail Removed)> wrote in message
news:277E1884-C222-45B3-A004-(E-Mail Removed)...
> Thank you all your help, Steve!
>
> "Steve Easton" wrote:
>
> > <SCRIPT language="JavaScript">
> > <!--
> > if ((navigator.appVersion.indexOf("MSIE") > 0)
> > && (parseInt(navigator.appVersion) >= 4)) {
> > document.write("<a href='#' onclick='window.external.
> > AddFavorite(location.href, document.title);'>
> > Add this page to your favorites!</a>");
> > }
> > file://-->
> > </SCRIPT>
> >
> > --
> > Steve Easton
> > Microsoft MVP FrontPage
> > 95isalive
> > This site is best viewed............
> > ........................with a computer
> >
> > "Dave" <(E-Mail Removed)> wrote in message
> > news:0F7AD2BC-D2D0-4C2E-882A-(E-Mail Removed)...
> > > Hello:
> > > I am trying to add a hyperlink to my website so that visitors will be

able
> > > to bookmark my site by clicking on it.
> > > I know which code works for IE:
> > > <A
> > >

HREF="javascript:window.external.AddFavorite('http://www.myswebsite.com','PH
P
> > > Freaks')">Bookmark this Site!</A>
> > >
> > > BUT it does not work for Netscape and FireFox.
> > >
> > > Does anybody know how to make the same work for Netscape and FireFox?
> > >
> > > Thank you very much!

> >
> >
> >



 
Reply With Quote
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      30th Oct 2005
Yes, I did Google for Add to Favourites, and installed the following script:

<script type="text/javascript">
if ((navigator.appName == "Microsoft Internet Explorer") &&
(parseInt(navigator.appVersion) >= 4)) {
var url="website";
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> - Press (Ctrl+D)<b/></font>";
document.write(alt);}
</SCRIPT>

Thank you all - Terrific Message Board!

"Bob Lehmann" wrote:

> How did this solve your problem? Non-IE version >=4 will not see the link.
>
> Bob Lehmann
>
> "Dave" <(E-Mail Removed)> wrote in message
> news:277E1884-C222-45B3-A004-(E-Mail Removed)...
> > Thank you all your help, Steve!
> >
> > "Steve Easton" wrote:
> >
> > > <SCRIPT language="JavaScript">
> > > <!--
> > > if ((navigator.appVersion.indexOf("MSIE") > 0)
> > > && (parseInt(navigator.appVersion) >= 4)) {
> > > document.write("<a href='#' onclick='window.external.
> > > AddFavorite(location.href, document.title);'>
> > > Add this page to your favorites!</a>");
> > > }
> > > file://-->
> > > </SCRIPT>
> > >
> > > --
> > > Steve Easton
> > > Microsoft MVP FrontPage
> > > 95isalive
> > > This site is best viewed............
> > > ........................with a computer
> > >
> > > "Dave" <(E-Mail Removed)> wrote in message
> > > news:0F7AD2BC-D2D0-4C2E-882A-(E-Mail Removed)...
> > > > Hello:
> > > > I am trying to add a hyperlink to my website so that visitors will be

> able
> > > > to bookmark my site by clicking on it.
> > > > I know which code works for IE:
> > > > <A
> > > >

> HREF="javascript:window.external.AddFavorite('http://www.myswebsite.com','PH
> P
> > > > Freaks')">Bookmark this Site!</A>
> > > >
> > > > BUT it does not work for Netscape and FireFox.
> > > >
> > > > Does anybody know how to make the same work for Netscape and FireFox?
> > > >
> > > > Thank you very much!
> > >
> > >
> > >

>
>
>

 
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
Field Code : bookmark Jess Microsoft Word Document Management 2 22nd Apr 2010 12:26 PM
VBA Code to go to one Bookmark. Juan Microsoft Excel Programming 1 22nd Apr 2008 09:26 PM
VS 2005 - Bookmark in code TheMaxx Microsoft C# .NET 1 11th Jul 2006 08:36 AM
Bookmark Code - NETSCAPE =?Utf-8?B?RGF2ZQ==?= Microsoft Frontpage 0 4th Nov 2005 05:36 AM
Code Bookmark Diarmuid Microsoft VB .NET 6 9th Sep 2005 06:37 PM


Features
 

Advertising
 

Newsgroups
 


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