setting innerHTML with a script inside

Viewed 11306

If I run the following line in Firebug on any page:

document.documentElement.innerHTML="<script>alert(1)</script>";

why isn't the alert command executed?

4 Answers
Related