How to create or add a Shortcut Icon to a Web Page,Logo with Address bar

Posted by Joggee | ASP.NET Books, ASp.NET 2005, Shortcut Icon | Monday 30 June 2008 11:03 am

What is shortcut Icon? As word specified shortcut ICON, Adding a website Logo as Icon to a Web page URL is called shortcut Icon. Any graphic can be display as logo to a windows Internet Explorer.

Shortcut icons are supported in Microsoft Internet Explorer 5 and later. Internet Explorer downloads a shortcut icon when a user first visits a Web page that has a valid icon.

For more clear concept It is highlighted in the below Image.

How to associate shortcut Icon with the webpage:
<
head>
<
LINK rel=”SHORTCUT ICON” href=”http://www.joggee.com/favicon.ico” type=”image/x-icon” />
</head>

Note:
In Internet Explorer 5 and 6, a shortcut icon does not display on the address bar unless the user chooses to add the page as a favorite.<script> <!– if ((navigator.appVersion.indexOf(”MSIE”) > 0) && (parseInt(navigator.appVersion) >= 4)) { var sText = “<u><span style=’color:blue;cursor:hand;’”; sText += “onclick=’window.external.AddFavorite(location.href,”; sText += “document.title);’>Add this page to your favorites</span></u>”; document.write(sText); } //–> </script> 

 

Useful link:
http://msdn.microsoft.com/en-us/library/ms537656(VS.85).aspx

2 Comments »

  1. Comment by Site Tool — September 5, 2009 @ 11:26 am

    I was just thinking about create or add a Shortcut Icon to a Web Page,Logo with Address bar and you’ve really helped out. Thanks!

  2. Comment by dotnetolympians — February 1, 2010 @ 7:11 am

    Hey bro aint that supposed to link back to me ;)

RSS feed for comments on this post. TrackBack URI

Leave a comment