I’m doing some code cleanup around here, and I came to a line in my
<head> that is soley to work around an Internet Explorer feature I don’t want on my site.
Here is the standard way to remove it:
<meta http-equiv="imagetoolbar" content="no" />
http-equiv attribute is meant to be simply a document-level replacement for real HTTP headers, and I have the ability to send out real HTTP headers, I decided to try out removing this line and replacing it with this bit of PHP, which according to the spec is functionally equivilent:
<?php header ('imagetoolbar: no'); ?>
Looks funky, but according to the HTTP 1.1 specification user agents should ignore headers they don’t recognize, so there’s no harm. However in my testing I was disappointed (though not terribly surprised) to find that Internet Explorer did not respect the header. I have trimmed other parts of my markup quite a bit though, and I’m willing to sacrifice this one line.
17 thoughts on “Image Toolbar Header”
What’s the purpose of removing them? And are you ever going to employ the ‘subscribe to comments with e-mail’ plugin? 😉
Yes, what is the exact point of the no image bar, is it to not be intrusive to the background images or what?
It annoys me. I’ll check that plugin out. I helped Jennifer a lot when she was first writing it.
I am assuming that by removing it, you are doing so for persons other than yourself, because a) I doubt you use Internet Explorer personally for anything other than CSS compatibility testing, and b) even if you did use it, you’d probably just turn the stupid thing off in IE’s options.
Actually, you know what? This was going to be a mild rebuke about forcing people to do something when they could be convinced instead, but every time I am at someone else’s place and am using their computer, turning that toolbar off is one of the first things I do. And I sure as hell don’t ask first. I just turn it off and pat myself on the back for making the world a better place. Sometimes the customer ISN’T always right. Sometimes they’re just ignorant. 🙂
Here’s a second vote for using the subscribe to comments plugin (which I also contributed to). The great thing about it is that it don’t require anything from you, the admin. If people want to get e-mail notifications, they check (or leave checked) the box, and when they don’t want any more notifications for that entry, they unsubscribe themselves.
What’s the need of the subscribe to comments plugin, when there is a RSS feed on every post just for comments? I do not understand why to reinvent the wheel.
Not everyone does the RSS dance. Some just prefer e-mail.
I don’t use RSS in that way…
RSS is the most efficient way to get notified when new comments are entered, IMHO. POP Headlines or FeedDemon and NewsGator are the best I have seeing.
thanks for this read. i hate that ie toolbar over images. good stuff
David: I appreciate that you use your RSS reader as a dumping ground for small things such as the comments on thie thread. But I prefer to keep me reader clean. My mail client – IMO – is much more adept at handling large quantities of mail than my RSS reader is, due to the way I can customize the rules it uses to sort my mail by. My RSS reader (NetNewsWire Lite) doesn’t allow me to do any of these things.
I hate that stupid IE toolbar thing on principle alone, so thanks for the tip.
In this particular case, it was causing an image to appear too small to read the text.
Set your monitor to 640×480 then compare:
Thanks for the tip. I am using Crystal Reports, which provides its own printing. That menu confuses users to no end!!!
Thanks for the tip, this is incredibly useful as I am using an image as a basis for a colour picker and the helpful IE toolbar obstructs some of the colours.
can i do this in CSS?
Thankyou very much for your help. I used java script to protect my webpage but i didnot know a way to get rid of image tool bar. thanks
“And I sure as hell don’t ask first. I just turn it off and pat myself on the back for making the world a better place. Sometimes the customer ISN’T always right. Sometimes they’re just ignorant.”
Precisely why we programmers try to keep you graphics monkeys as far away from the truly dangerous things as possible. Have not seen a more ‘ingnorant’ comment from a techno-phile in a LOOOOONG time.
(to the author: great tip, thanks)