Reputation: 1
How can I disable the image toolbar that popups whenever mouse pointer is over an image. I need to do this within javascript only.
Upvotes: 0
Views: 244
Reputation: 72870
The image toolbar can be disabled through a meta tag:
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
or apparently (though I haven't tried this) using an attribute on the tag itself:
GALLERYIMG="no"
The latter approach could obviously be done in a pure Javascript solution...
Upvotes: 2
Reputation: 58931
Try:
<meta http-equiv="imagetoolbar" content="no" />
or for an individual image:
<img src="imageurl.png" galleryimg="no" />
Upvotes: 1
Reputation: 2939
You can display the image as a background element through CSS instead of using img tag. The tag will probably always have the popup.
Upvotes: 0