Skip to content

Instantly share code, notes, and snippets.

@luk-
Created October 30, 2011 07:18
Show Gist options
  • Save luk-/1325640 to your computer and use it in GitHub Desktop.
Save luk-/1325640 to your computer and use it in GitHub Desktop.
JSON object of the *most* browser-compatible events you'll listen for. To make the list, the event had to support Webkit browsers and Firefox.
{
"beforeunload":
{
"bubbles":"no",
"cancel":"yes",
"nosupport":{"opera":"*"}
},
"blur":
{
"bubbles":"no",
"cancel":"no"
},
"change":
{
"bubbles":"no",
"cancel":"yes"
},
"click":
{
"bubbles":"yes",
"cancel":"yes"
},
"contextmenu":
{
"bubbles":"yes",
"cancel":"yes",
"nosupport":{"opera":"<10.5"}
},
"copy":
{
"bubbles":"yes",
"cancel":"yes"
},
"cut":
{
"bubbles":"yes",
"cancel":"yes"
},
"dblclick":
{
"bubbles":"yes",
"cancel":"yes"
},
"DOMActivate":
{
"bubbles":"yes",
"cancel":"yes",
"nosupport":{"opera":"*", "ie":"<9"}
},
"DOMCharacterDataModified":
{
"bubbles":"yes",
"cancel":"no",
"nosupport":{"ie":"<9"}
},
"DOMNodeInserted":
{
"bubbles":"yes",
"cancel":"no",
"nosupport":{"ie":"<9"}
},
"DOMNodeRemoved":
{
"bubbles":"yes",
"cancel":"no",
"nosupport":{"ie":"<9"}
},
"DOMSubtreeModified":
{
"bubbles":"yes",
"cancel":"no",
"nosupport":{"opera":"*"}
},
"drag":
{
"bubbles":"yes",
"cancel":"yes",
"nosupport":{"opera":"*"}
},
"dragend":
{
"bubbles":"yes",
"cancel":"yes",
"nosupport":{"opera":"*"}
},
"dragenter":
{
"bubbles":"yes",
"cancel":"yes",
"nosupport":{"opera":"*"}
},
"dragleave":
{
"bubbles":"yes",
"cancel":"yes",
"nosupport":{"opera":"*"}
},
"dragover":
{
"bubbles":"yes",
"cancel":"yes",
"nosupport":{"opera":"*"}
},
"dragstart":
{
"bubbles":"yes",
"cancel":"yes",
"nosupport":{"opera":"*"}
},
"drop":
{
"bubbles":"yes",
"cancel":"yes",
"nosupport":{"opera":"*"}
},
"error":
{
"bubbles":"no",
"cancel":"yes"
},
"focus":
{
"bubbles":"no",
"cancel":"no"
},
"hashchange":
{
"bubbles":"yes",
"cancel":"no",
"nosupport":{"ie":"<8", "opera":"<10.6", "safari":"<5"}
},
"input":
{
"bubbles":"no",
"cancel":"no",
"nosupport":{"ie":"9"}
},
"keydown":
{
"bubbles":"yes",
"cancel":"yes"
},
"keypress":
{
"bubbles":"yes",
"cancel":"yes"
},
"keyup":
{
"bubbles":"yes",
"cancel":"no"
},
"load":
{
"bubbles":"no",
"cancel":"no"
},
"message":
{
"bubbles":"no",
"cancel":"yes",
"nosupport":{"ie":"8"}
},
"mousedown":
{
"bubbles":"yes",
"cancel":"yes"
},
"mousemove":
{
"bubbles":"yes",
"cancel":"no"
},
"mouseout":
{
"bubbles":"yes",
"cancel":"no"
},
"mouseover":
{
"bubbles":"yes",
"cancel":"yes"
},
"mouseup":
{
"bubbles":"yes",
"cancel":"yes"
},
"paste":
{
"bubbles":"yes",
"cancel":"yes"
},
"RadioStateChange":
{
"bubbles":"no",
"cancel":"no",
"nosupport":{"ie":"*", "opera":"*"}
},
"readystatechange":
{
"bubbles":"no",
"cancel":"no"
},
"reset":
{
"bubbles":"no",
"cancel":"yes"
},
"resize":
{
"bubbles":"no",
"cancel":"no"
},
"scroll":
{
"bubbles":"no",
"cancel":"no"
},
"select":
{
"bubbles":"no",
"cancel":"yes"
},
"submit":
{
"bubbles":"no",
"cancel":"yes"
},
"unload":
{
"bubbles":"no",
"cancel":"no"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment