[thelist] Stupid IE Trick

Joshua OIson joshua at alphashop.net
Sat Feb 17 09:11:03 CST 2001


This one made my head itch a little.

<tip type="Internet Explorer 5.0">
Did you know that client side javascript can "write" HTML so that when you
view the source you only see what you actually "wrote"?  Try this code in IE
5.0:

  Check this out
  <script defer>
  for (i=0; i<10;i++)
  document.write('Yo!');
  </script>

When you load that page into IE 5.0 and view the source all you see is
Yo!Yo!Yo!Yo!Yo!Yo!Yo!Yo!Yo!Yo!
</tip>

-joshua





More information about the thelist mailing list