Skip to content

24 ways to impress your friends

Vote up?

Nate K

I would agree with what you (and others) have said here. I would avoid using document.write and create the element with the DOM, and I would avoid explicitly setting the styles in the JS file. Have classes setup accordingly for the situations and then reference the element.className.

Of course, this isnt NECESSARY, it just my anal attention to the small details.