Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<script language=javascript>
document.onmousedown = noway;
function noway()
{
if( event.button==2||event.button==3)
{
alert("Eeeh... Don't use that mouse button");
}
}
</script>
document.onmousedown=noc;
function noc()
{
if(event.srcElement.ID == "AllowRC" )
{
//code for allowing right click feature
}
else
{
//code for removing right click feature
}
}
document.oncontextmenu = nope;
function nope()
{
alert("This is the best way, in explorer");
return false; // there is no use for the aler
}
<div id="test" style="background-image:url([image-url]);background-color: #0000FF;width:[image width]px; height:[image height]px;"></div>
<script language=javascript>
document.oncontextmenu = Nope;
function Nope()
{
alert("This is the best way, in explorer");
return false;
}
</script>