Web Development
Discussion Locked
0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I read about and have since lost the HTML or Java code that lets you know when someone has right-clicked an image on a webpage. The code pops a window to the user stating whatever you want to the viewer. You can't prevent the download, but can at least notify them that you caught it. I'd like to have the code to do this and I believe it was fairly simple. Thanks.
5 replies
by ebob
There is no HTML to do this.
Javascript usually depends on the document object model in use by the client browser, and I have not seen an "onRightClick()" method, unless it's in one of the new v6 browsers.
Which leaves JAVA, which I would think depends on the client successfully downloading a JAVA applet. Not something to be guaranteed, I suspect.
by keeferboy
Poster rated this answer
by chrandrob
You'll need to change the message variable to what you want to display. This only works in Internet Explorer 5.0 or later:
by keeferboy
Poster rated this answer
by keeferboy
This question was closed by the author
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
1 helpful
13 replies
0 helpful
3 replies
1 helpful
4 replies
0 helpful
0 replies
0 helpful
0 replies