magari torna utile ho risolto sfogliando un pò di guide di ajax:
e un piccolo css:codice:<html xmlns = "http://www.w3.org/1999/xhtml" > <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <link href="a.css" rel="stylesheet" type="text/css" media="screen, print" title="default" /> <title>Disabilitare il menu contestuale con Ajax</title> <script type="text/javascript"> function disabilita(element) { element.oncontextmenu = function() { var testo = document.getElementById("prova"); testo.innerHTML="ciao "; return false; } } function getElement() { disabilita(document.getElementById("prova")); } </script> </head> <body onload="getElement()"> <div id="prova" class="test"></div> </body> </html>
.test{
width: 100%;
height: 100%;
background-color: yellow;
}
ciao