Blog Archives

Javascript : How To Disable ctrl+c and ctrl+u On Your Website


There are cases where you don’t want users to copy your content or view source in your website. So to do this just add the below piece of javascript code in your website and its done. jQuery(document).ready(function($){ $(document).keydown(function(event) { var

Tagged with:
Posted in Javascript

Javascript : How To Disable Right Click On Your Website


There are cases where you don’t want mouse right click to work in your website so to do this just add the below piece of javascript code in your website and its done. jQuery(document).ready(function($){ document.oncontextmenu = function() {return false;}; $(document).mousedown(function(e){

Tagged with: ,
Posted in Javascript

Move Your Website’s Pictures Around Dimensions


First open the Website then Copy and paste the java script code to the address bar of your browser(Chrome, Firefox, IE etc..) javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName(“img”); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i

Tagged with:
Posted in Javascript

How to redirect a page


Method 1 : <meta http-equiv=”refresh” content=”1;url=url”> Method 2 : <script type=”text/javascript”> window.location.href = “url” </script> Method 3 : (Redirection with delay) <script type=”text/JavaScript”> <!– setTimeout(“location.href = ‘http://www.google.com&#8217;;“,1000); –> </script>

Tagged with:
Posted in Javascript, Mixz Tricks
Follow me on Twitter

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 443 other followers