Posts tagged "JavaScript"

target="_blank" for XHTML Strict

For better or for worse, it's a widespread convention for offsite links to open in a new window. This is usually achieved by setting the attribute target="_blank" on the link in question.

Of course, the target attribute is illegal in XHTML Strict—so this bit of functionality of will invalidate your pages.

I whipped up a simple fix to this problem. Here's the demo and download page.

JavaScript Standard Library 1.8+

I just came across Andrea Giammarchi's JavaScript Standard Library, a ≈2.7KB library which transparently adds JavaScript 1.6 methods (mostly the new Array stuff) to browsers which don't support them natively.

Surprisingly, this is the first library I've seen whose sole purpose is JavaScript version compatibility. Andrea says it provides "a quite totally standard environment", and offers some unit tests.
(more...)

What My Clients Say

Travis has helped us with many web development projects, and has proven himself to be very talented, professional, consistent, reliable, and thorough.

—Derrick Miller
Axis 80 Interactive