Cool JavaScripts that you must Try on your WebBrowser!

Cool JavaScripts that you must Try on your WebBrowser javascript girlToday i am sharing with you some cool pieces of codes that you must try on your browser. Interestingly the JavaScripts listed below can be used to perform malicious activity or to spread SPAM by just modifying them or combining with few extra code. for example we have already seen the “Rotating images Facebook Spam” some days back. So Guys Before trying out any JavaScripts on any Websites, you got to first examine the code properly and see that it is not calling any external Script or contains any malicious code.

All the JavaScripts listed below are 100% safe and tested. use of these java scripts will not harm your PC and will not affect your ongoing processes. Copy-paste any JavaScript in the Console and hit ‘enter’. To Stop the JavaScript actions, Just Refresh the current Tab of your Browser.

[ * ] Most Web-browsers have stopped the ability to run JavaScript’s in the Address Bar directly. So to counter this move we will run these JavaScript’s in Console of ‘Developer Options’. On any Webpage just Press F12 key on your Keyboard. This will Open-up Developer Options. Click Console Tab and paste Any of the JavaScript listed below and Hit Enter Key to Run. Once you Press Enter key, just close the developer options and Experience the Script Effect.

JavaSript to Edit any Webpage!

The Below piece of JavaSript code lets you edit any Webpage in realtime. With Firefox, you can even edit and save the modified pages to your PC.

javascript:document.body.contentEditable='true'; document.designMode='on'; void (0);

Webpage Content Killer -Destroy any Webpage.

Now this is my Favorite piece. This code lets you kill any objects in the webpage. This is fun just like playing ‘Asteroids’ game. Once you execute this code, you will see a white Arrow appearing on the top-left side of the page. This arrow acts as a TANK. To fire use ‘Space bar’, to move your Tank just use 4 ‘Arrow keys’. ‘Esc’ to stop the game.


The Calculator

In case if you are very quick in coding and don’t wanna use your inbuilt calculator, you can always use the below JavaScript to get the quick answer within your browser. you can replace 34343+3434-222 with expression of your choice.

javascript: alert(34343+3434-222);

Floating or Dancing Images in Webpage

This piece of JavaScript pulls off all the images from any web page and rotates or float’s them in a circular ordr. The best place to test this Script will be a website with many images(for eg: any photo gallery or albums page) (Scroll Up to see the Action)
note: look carefully in the above code, its rotating the HTML “img” tag. Just replace it with “a” or “p” and watch some links or text rotate instead of images.

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 ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px";*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

Shake your Browser Window!

This JavaScripts literally shakes your Browser window, must try.

javascript:function Shw(n) {if (self.moveBy) {for (i = 35; 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);} } }} Shw(6)

Reveal Password Behind Asterisk(*****) Using Javascript

This code reveals the hidden password string behind asterisk. to try this open any login page and type in your password. Paste the below javascript in address bar and press enter. This Script is of real use when tried on your friends PC.

javascript: alert(document.getElementById('Passwd').value);

Java Script to Find Spoof Websites!

This Script lets you know the actual URL and the address URL of the page. and thus helps you identifying Spoof Websites!

javascript:alert("The actual URL is:\t\t" + location.protocol + "//" + location.hostname + "/" + "\nThe address URL is:\t\t" + location.href + "\n" + "\nIf the server names do not match, this may be a spoof.");

Select All JavaScript for Facebook users.

This Script lets you select all your friends while Sending Invitations. You are always welcome to Try this Script on Our Facebook Page!


And Finally make sure you also try this:

javascript:function reverse() { var inp = " /m\ .gnirolpxE peeK !setadpu liame eerf ruo ot ebircsbus uoy erus ekaM .su htiw hcuot nI yatS !sihT deyojne uoy epoh I "; var outp = ""; for (i = 0; i <= inp.length ; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();

  • Shekhar Sahu

    very cool, thanks for sharing

  • allahnawaz

    how to use this scripts please send me the solution. step by step.

    • just copy the script and paste it in the address bar of your Browser (where u type www) and hit enter. to stop the script just refresh the page.

      • Bhavesh

        Its not working .. 🙁 .I juss enterd d uname passkey and the copied my javascriot @ address bar … but it just linked me to the google search results of the link :_
        javascript: alert(document.getElementById(‘Passwd’).value);
        please help and tell me it in detail .. please 😉

  • Hey ashwn i tried the followin scripts re
    its amazin
    i liked it very much


  • abhinav

    these are not not working in my browser , sometime working , sometime not working, what to do ??

    • i bet you are using google chrome?? ..if yes, you need to enable Javascript under settings tab. ..or else try it on mozilla firefox…it works fine.

      • abhinav

        i checked JavaScript of my all browsers is enabled it doesn’t work in any browser , when i using it in chrome or IE it starts google search of that code.
        i m using IE9,Chrome14.0,Firefox6.0

        • George

          on firefox goto tools>Web Developer>Web console and paste the code there. Hope this helps 🙂

  • tanzib

    is it possible to save something what i’ve changed on a website by using this javascript >javascript:document.body.contentEditable=’true’; document.designMode=’on’; void (0);….if yes then tell me that code plz…..thankssss

  • ansari

    excellent job thank u

    keep doing more

  • Rad

    Hey ashwin i used the code for password reaveal but my pc was nt letting it to do its wat to do?

  • zach

    On firefox when i type it in, the all say missing variable name. whats wrong?

  • jack

    only a few work like the dinky little ones, how come the pay pal and the password ones are not working for me, i have tried in internet exployer, google chrome, and mozila foxfire so i need help

    • Danny Omally

      In order for the paypal Javascript to work, you must download one of The Oldest versions of Firefox browsers. just Google search “Download an older version of firefox”, you’ll get there then download it. Then install it to your PC! Then you’ll be able to do all those cool things with that Javascript! Your very welcome!