How to enable right click context menu?
These days we see a lot of websites which have disabled right click for so called security reasons. I am using Mozilla Firefox and have spell check installed. I was writing an email to my bank’s branch manager and wanted to correct a misspelled word but when I right clicked the incorrect word to see the suggestion. I got a message in a browser alert:
Due to security reasons, Right click is not allowed
It can really be a big pain if someone wants to paste a message or a transaction number or correct a misspelled word like in my case. So I figured out a work around. Lets see how the right click is disabled at the first place:
<script>
document.oncontextmenu=function(){
// Add alert or notification
return false; // Cancel the event chain
}
</script>
The piece of code above will block the context menu event with a custom function that is usually used to give an alert like I got on my Bank’s website. And false value is returned so that the event chain is stopped and context menu is not displayed.
Now to enable the context menu again we will have to remove this method that is blocking the context menu functionality of a web page. For this we can reassign the context menu event with a null value or we can assign a method that returns a true value so that the event chain is not blocked or stopped or interrupted.
We can also use javascript protocol of our browsers to add the javascript to enable right click to our bookmarks or enable right click via address bar. Here is how we can do this:
javascript:void(document.oncontextmenu=null)
Click here to "enable" back the right click context menu on this page
Schools to be ranked, more lives to end
Are we missing on the daily dose of news about students giving their lives away by surrendering in front of pressure to perform better and excel in such a competitive world of education in India. It seems yes and that we want children of India to suffer in traumatic situations. Indian’s need to accept that no scale is perfect to measure one’s ability to perform well in life. Great emphasis is already been given to academic performance which leaves students in a feeling of grief with average performance but with possible excellent skills out side the limits of what any academic system can measure or identify.
There are several unanswered questions to which Indian society must address before more students are sacrificed. Failure is never considered an option and is treated as a shameful situation and average performance is never being appreciated.
Such kind of an attitude makes us the Indians develop a conservative mentality which limits us to a scope or a horizon that is presented to us. Fear of failure has made us insecure and has reduced our risk taking capabilities, hence closing down several doors of opportunities which would definitely help India progress and provide a sense of satisfaction. When alternatives will be given a chance and a consideration, that will be a day when Indians will not give up their lives to a mere failure or to even the fear of facing one.
I asked my maths teacher in sixth class that where am I going to use algebra in real life, what is its use? The teacher answered, in your exams !!


