You don't even have to leave your chair. Login and vote now.
By bloid
via sitepoint.com
Submitted: May 13 2008 / 02:30
The correct type value for JavaScript is actually application/javascript. But wouldn’t you know it, Internet Explorer will not execute the code if you use that type value. So here’s a hell of a situation, to produce a valid HTML or XHTML document with script tags, we are required to use a type attribute, but to get it to function across all browsers we have to use an incorrect value.
SaveShareSend
Tags: css-html, javascript
Add your comment