Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body oncontextmenu="return false;">
- <script src="jquery-1.3.2.min.js"></script>
- <script>
- $(document).ready(function()
- {
- $(document).mousedown(function(e)
- {
- if (e.button == 2) //right click
- {
- document.body.style.backgroundColor = "green";
- }
- else //left click
- {
- document.body.style.backgroundColor = "blue";
- }
- });
- });
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment