javascript: icon gets lost - bookmark this page

A

arno

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
 
A

arno

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top