Block right click or disable keyboard on web pages

Hello frn'ds,

Today i was searching some tricks about protecting web contents, during this i have found one interesting trick (i.e. html code) by which we can disabled the context menu in browser. This code not only block the right clicking in the browser , it also blocks the keyboard's key press events.

< body oncontextmenu="return false;">

Benefits of this code,
1. Can prevent View Source of your html page.
2. Can protect your page contents.
3. Can protect your web images and so on.

click here to read more or know more

Comments

Wizard_pravin said…
it's not working tell me why i tried it everywhere but still i can see menu
Wizard_pravin said…
it's not workin tell me how to solve it
Wizard_pravin said…
it's not working tell me why i tried it everywhere but still i can see menu
Tiggem said…
Hi Pravin,

In which browser and OS you are testing.

Popular posts from this blog

CSS Mouse Cursors and Custom Cursors

How to delete xml node using php