ooops i thought i had it but its not working
inside the html i have
and then i made a js file with this in it
document.getElementById('prevent').oncontextmenu = function ()
alert('you right clicked inside this div!');
if not div i can use a table too because there is only one table in this file.
and i know i can just do the div in the file with the js inside it easy, but that does not pass validation due to oncontextmenu not being an valid attribute.