Navi's

Necessity, the mother of invention

  • Twitts

    • TCS gifts wristwatches to its workers, they don’t like it. Want jewellery, home instead a.msn.com/00/en-in/BBVYR… 4 days ago
    • RT @BBCHindi: अबू धाबी में पहले हिन्दू मंदिर का शिलान्यास वीडियो: रौनक कोटचा, अबू धाबी से, बीबीसी हिन्दी के लिए https://t.co/ARWFwzh1lO 5 days ago
    • RT @TimesNow: I worked in the interest of the nation and there has been an increase in the faith people have on my honesty: PM @narendramod5 days ago
    • RT @ANI: Priyanka Chaturvedi when asked on her recent song on Smriti Irani's degree, that will she continue it after joining Shiv Sena, a B… 6 days ago
    • RT @ANI: #WATCH Congress leader Hardik Patel slapped during a rally in Surendranagar,Gujarat https://t.co/VqhJVJ7Xc4 6 days ago
  • RSS My Reader

    • An error has occurred; the feed is probably down. Try again later.
  • Top Clicks

  • Advertisements
  • Visitor Map

    Locations of Site Visitors
  • Flag Counter

    free counters

Archive for the ‘jQuery’ Category

Disable Right Click using jQuery

Posted by Navi's on January 20, 2011

To disable right click on web page you can do this using jQuery.

You can download jQuery Library and include it and use bellow code of snippet.


<script src="jquery.min.js" type="text/javascript"></script>

$(function() {
            $(this).bind("contextmenu", function(e) {
                e.preventDefault();
            });
        }); 

That it 🙂

Advertisements

Posted in .Net, Javascript, jQuery | Tagged: | Leave a Comment »