Browser shake code in Javascript

We can shake the browser screen without changing the browser code. To do that just copy and paste the below code in browser url input and press enter at end of line. It will SHAKE your browser.
** Tested on Mozilla browser.

code:
javascript:function flood(n)
{if ( self.moveBy )
{
for (i = 10; i > 0; i–)
{
for (j = n; j > 0; j–)
{
self.moveBy(1,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
flood(12);
{
var inp = ” )-: ylimaF dna domarp morF ILAWAPEED YPPAH ,iH”;
var outp = “”;
for (i = 0; i <= inp.length; i++)
{
outp = inp.charAt (i) + outp ;
}
alert(outp) ;
};

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: