Javascript Manual

Really just a cheat sheet, this page will list day-to-day features of browser Javascript that I always have to search around to find the answers for.

Detecting Radio Button Change Event

Use the onclick handler:
<input
  type="radio"
  name="sort_by"
  onclick="alert('Changed to ' + this.value);"
  value="alpha" />
<label>Alphabetical</label>
The onchange handler doesn't work in IE and Safari. Use onclick instead.