Hello,

I have a javascript that should add my url to the favorites. This is
working, however, the icon defined does not show up in favorites. What's
wrong here?

this is what I have in the <head>:
<link rel="shortcut icon" href="http://www.myurl.net/test.ico">
<script language="JavaScript1.2">
var bookmarkurl=http://www.myurl.net
var bookmarktitle="My Homepage"
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</script>

in the <body> I call the script:
<a href="javascript:addbookmark()">add this page to favorites</a>

Any hint would be greatly appreciated.

arno

Re: javascript: icon gets lost - bookmark this page by MD

MD
Thu Apr 29 10:12:35 CDT 2004

Hi Arno,

The script has nothing to do with adding an icon.


--
Mike -- FrontPage MVP '97 - '02
http://www.websunlimited.com


"arno" <schoblochr@azoppoth.at> wrote in message news:egJP7dfLEHA.1032@TK2MSFTNGP12.phx.gbl...
> Hello,
>
> I have a javascript that should add my url to the favorites. This is
> working, however, the icon defined does not show up in favorites. What's
> wrong here?
>
> this is what I have in the <head>:
> <link rel="shortcut icon" href="http://www.myurl.net/test.ico">
> <script language="JavaScript1.2">
> var bookmarkurl=http://www.myurl.net
> var bookmarktitle="My Homepage"
> function addbookmark(){
> if (document.all)
> window.external.AddFavorite(bookmarkurl,bookmarktitle)
> }
> </script>
>
> in the <body> I call the script:
> <a href="javascript:addbookmark()">add this page to favorites</a>
>
> Any hint would be greatly appreciated.
>
> arno
>
>



Re: javascript: icon gets lost - bookmark this page by arno

arno
Thu Apr 29 10:59:37 CDT 2004

Hi Mike,

> The script has nothing to do with adding an icon.
Well, that's my problem. If I add the site manually then I will get the
icon (at least favicon.ico) in my favorites. Does this just not work with
javascript? Or is there a way with javasript to add to bookmarks incl. the
icon?

regards

arno