Javascript Tricks

by Guna 2012-07-23 07:17:31

Just enter the following code in the addressbar and hit enter:

Edit Webpage:
With the following code you can edit any webpage:


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



Calculator:
You can use a browser as a calculator with this code.


javascript: alert(4+5+6+7+(3*10));



Infinite Alert Box:
As soon as you run this javascript a infinite loop of alert boxes will open which cannot be stopped until you restart your web browser. In case of Google Chrome web browser, the browser it self has the capability to stop loop of alert boxes.

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



Tagged in:

601
like
0
dislike
0
mail
flag

You must LOGIN to add comments