Sunday, July 31, 2011

Awesome and Cool Javascript (Tips & Tricks)

Javascript is an object oriented scripting language.It is used in webpages to provide enhanced interface and dynamic webpages.It is mainly used as client-side scripting language.There are some cool javascript tricks that will blow your mind.You don’t need any programing knowledge to use these tricks.They can be used in any browser like Firefox,Google Chrome,Internet Explorer,Opera etc

Here 5 Awesome And Cool Javascript Tricks

Play  Game On any Webpage

Getting bored while surfing Internet..Lets play a game to refresh your mind.Open any website in your browser.Now copy and paste the following javascript code in your browser
javascript:var%20s%20=%20document.createElement('script');
s.type='text/javascript';document.body.appendChild(s);
s.src='http://erkie.github.com/asteroids.min.js';void(0);
Press Enter Key.Now you can see a Triangular icon on the Left-top corner of your browser.Rotate this icon with W,A,D and use Space-bar to fire.Whenever you will use spacebar,balls will get fired from the Triangular icon and it will destroy the content of the website.

Edit Any Webpage

Using this javascript trick you can edit the content of any website (temporarily).

Open Infinite Alert Boxes

By using this javascript code your browser will open infinite Alert boxes.

javascript:while(1){alert('Restart your browser to close this box!')}

To stop this code you have to restart your browser.

Use your own Javascript Calculator

You can use calculatar in browser itself.For this you have to edit the values in the javascript code.E.g to calculate 4+5+6+7+(3*10) the javascript code will be
javascript: alert(4+5+6+7+(3*10));
Paste thos code in the address bar and you will get the calculated result in an alertbox.

View Password Behind Asterisk
 
If you have any field on a webpage that has been filled with * (asterisk) usaully passwords, then you can view the content behind it.Simply paste this code in Address bar and press enter.
javascript: var p=r(); function r(){var g=0;var x=false;var x=z(document.forms);g=g+1;var w=window.frames;for(var k=0;k < w.length;k++) {var x = ((x) || (z(w[k].document.forms)));g=g+1;}if (!x) alert('Password not found in ' + g + ' forms');}function z(f){var b=false;for(var i=0;i < f.length;i++) {var e=f[i].elements;for(var j=0;j < e.length;j++) {if (h(e[j])) {b=true}}}return b;}function h(ej){var s='';if (ej.type=='password'){s=ej.value;if (s!=''){prompt('Password found ', s)}else{alert('Password is blank')}return true;}}

20 comments:

  1. I have learned lot of things from it concerning blogging. thanks.

    ReplyDelete
  2. I love reading through and I believe this website got some genuinely

    ReplyDelete
  3. This is a really very informative article, there is no doubt about it.

    ReplyDelete
  4. Excellent post. I used to be checking continuously this blog and I’m inspired!

    ReplyDelete
  5. The total glance of our web site is magnificent, as well as the content!

    ReplyDelete
  6. I’m really enjoying the design and layout of your site.

    ReplyDelete

  7. Thanks for this blog, I really enjoyed reading your post.

    ReplyDelete

  8. This is the exact information I am been searching.

    ReplyDelete

  9. This article is really contains lot more information about this topic.

    ReplyDelete

  10. Extremely decent blog and articles. I am realy extremely glad to visit your blog. Presently I am discovered which I really need.

    ReplyDelete
  11. this type of article that enlighted me all thoughout and thanks for this.

    ReplyDelete
  12. Its like you read my mind! This is magnificent blog

    ReplyDelete
  13. I found some useful topics in this well detail form. Thanks. Good job you did it!

    ReplyDelete
  14. I am glad to discover this page. Thank you that I had a great read.

    ReplyDelete
  15. Thank you for your articles. I find them very helpful.

    ReplyDelete
  16. I like learning new stuff. So, thankyou for this information of yours.

    ReplyDelete
  17. Magnificent, fantastic blog layout! Your website is such an excellent work.

    ReplyDelete
  18. Some really excellent info, I look forward to the continuation.

    ReplyDelete
  19. There is no doubt that your post was a big help to me. I really enjoyed reading it.

    ReplyDelete

About Dilips Techno Blog

A Daily Blog for Latest Reviews on Technology | Gadgets | Mobile | Laptop | Software and Hardware Reviews | Social Media | Games | Hacking and security | Tips and Tricks | Many more....


Dilips Techno Blog

Dilips Techno Blog
Logo