Disable right click using jquery

To disable right click menu using jquery, the following code snippet can be used [javascript] $(document).ready(function(){ $(document).bind(“contextmenu”,function(e){ return false; }); }); [/javascript] Be sure to include Jquery before you write this code 🙂 Demo can be found here Vivek

Browser detection using Jquery

Hi It is very easy to detect the browser using jquery. This code snipt will give you the browser. [javascript] var browser = GetBrowser(); alert(browser) ; }) function GetBrowser() { $.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()); if($.browser.chrome) return “chrome”; if($.browser.mozilla) return “mozilla”; if($.browser.opera) return “opera”; if($.browser.safari) return “safari”; if($.browser.msie) return “ie”; } [/javascript] Demo can be found here…Continue reading Browser detection using Jquery