I have this code and jquery function for hide HTML elements when press right click, but why dont work?
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script>
<script>
$(document).on("mousedown", "div, p, img, span, a", function () {
if (event.which === 3)
$(this).hide();
});
</script>
<?php
$url = 'http://www.kupime.com/';
$data = file_get_contents($url);
$data = '<head><base href='.$url.' target="_blank" /></head>'.$data;
echo $data;
?>
You are missing the param event, also you are using jQuery 1.3.2, which does not have the
.onfunction yet, you need at least 1.7.Please fix this list: