How can I set the browers icon?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'd like to be able to control the icon presented in the upper left corner of
the browser dynamically, based upon the page I'm serving. Is there a way to
do this?
 
Thank you for the feedback; however, this does not address the issue. If
somebody makes a request, via their browser, to my site,
www.foo.com/page.aspx, I want to be able to specify the icon in the
upper-left corner of the browser (in IE, it's the blue 'e' on a white page).
Ideally, I'd like to do this as part of the Page_Load method in the page that
is serving the request.
 
You can't. The only time IE will allow that is when you have bookmarked the
site in some fashion. Then it will add the favorite icon. There is no way to
do it in code and no way to force IE to do it. Also, whenever the cache is
cleaned out the icon will be removed, regardless of whether or not the page
is still bookmarked.

For FireFox or Opera you can show an icon, but you have to follow the
examples that were provided by ThunderMusic. You can change the link
reference through code to generate the correct icon, but you have to follow
the format in the examples.
 
I must not be explaining myself. I don't care about setting icons in the
favorites list or in the address bar. I want to set the icon that is display
on the left side of the title bar; that is, the application icon for the
browser. Just like I can set the text that's displayed in the title bar, I'd
like to set the icon that's displayed in the title bar. Is that possible?
 
With all due respect, what am I missing?

Mark said "You can't."

Then he goes on to say:

"The only time IE will allow that is when you have bookmarked the
site in some fashion. Then it will add the favorite icon."

"For FireFox or Opera you can show an icon, but you have to follow the
examples that were provided by ThunderMusic. You can change the link
reference through code to generate the correct icon, but you have to follow
the format in the examples."

When he explains how it can be done, he talks about bookmarks and favorites;
the examples ThunderMusic gave were for icons that will be displayed 1) in
the favorites list, or 2) in the address bar.

I understand that. But that's not what I'm looking for.

I don't want icons associated with URLs. I don't care about icons in the
favorites list. I don't care about icons in the address bar leading a known
URL.

What I'm asking about is the icon in the top left corner of the browser
window. If one configure IE, for example, so that it does not have an
address bar, or a tool bar, or a menu bar, you're still left with the title
bar, and it has an icon on the left side. This icon *DOES NOT* change if you
hit a site that has a properly configured link reference.

Do this experiment; go to ThunderMusic's site, and save it as a favorite.
You'll see in the list that he does associate an icon with his site. You'll
see that icon in the address bar, to the left of the URL, and you'll see it
in front of his URL in the favorites. You *WILL NOT* see it in the title bar
of the browser.

So, again, it is the icon in the Title Bar that I would like to be able to
change. As I mentioned in my last post, the <title> tag replaces the text in
the title bar; is there some kind of equivalent way to change the application
icon that is in the title bar?
 
Ok. Now I get it. I think the reason nobody got it exactly is nobody has
ever asked that one. There isn't anything you can do to change that icon. It
is the applicaiton icon as defined by the application. Just like Word will
have it's own icon there, Outlook, FireFox, etc., that's part of the
application itself and you're not going to get it changed through code
without altering the desktop icon settings and that required more privaleged
access (if possible, I think it can be done but for IE it would probably
have to be done through something like the IE administration kit or the
registry).
 
Hi,

Use IE 7.0.

Place following code in your header.
<link rel="shortcut icon" href="images/Logo.ico" type="image/x-icon" />
 
Back
Top