This script shows (with images files for Firefox) how too determine the target of a click on the page... It's not a good idea too change the right click.
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="fr">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="generator" content="PSPad editor, www.pspad.com">
<title>Untitled</title>
<style type="text/css">
</style>
<script type="text/javascript">
function clc(e){var t=e?f.target:f.srcElement;
alert("HTML element "+t.tagName+"\nImage src "+t.src+"\nImgage alt "+t.alt);
}
document.onclick=clc;
</script>
</head>
<body>
<img src="image1.gif" alt="image n°1">
<img src="image2.gif" alt="image n°2">
<img src="image3.gif" alt="image n°3">
</body>
</html>
Bookmarks