I don't write inline javascript, but I see and work with it all the time in code bases that I work with:
<div onClick='javascript:alert("asdf");'></div>
I did some tests and found that in all my browsers, even IE in IE5 mode, you can change javascript
to literally anything, and the alert
will fire just fine.
<div onClick='qwerty:alert("asdf");'></div>
What is that delimiter? What is the history behind it? Is it ever needed or useful? I seem to remember that <script type="text/javascript">
doesn't really need the type
attribute set, is that related to this, as well? I tried some googling around, but it's hard to search for.