I have this little bookmarklet:
javascript:document.getElementsByTagName("div")[0].innerHTML+="Chuck Norris";
Now he obviously needs to take the first one divon the page and add Chuck Norris to it.
Instead, when you paste into the address bar, Chuck Norris rewrites the page.
Why is this so?
Note: this does not happen in Safari ...
source
share