I have come across some legacy javascript code and I found couple of snippets of code like this:
//First One
function document.oncontextmenu()
{
return;
}
//Second One
function window.onload() {
//some code here
}
I am confused if this is working and if yes what is it really doing? Code was written to only support IE back in the day. I have no means of verifying if this code is working or just useless sitting there. Does this make sense to anyone?