I have this little bookmarklet:
javascript:document.getElementsByTagName("div")[0].innerHTML+="Chuck Norris";
Now it's obviously supposed to take the very first div
on the page, and add Chuck Norris into it.
Instead, when pasted on the address bar, Chuck Norris overwrites the page.
Why is this so?
Note: this doesn't occur on Safari...