I was originally going to offer an oninput event, for example thg435 answer , but I thought that I would fish first for more details in the comments. If you donβt need to distinguish between spelling check adjustments and other types of input (keyboard, insert, drag and drop, etc.), then oninput will do the job just fine.
If you want to distinguish between these input types, then I am afraid that there is no event that fires specifically for spell check corrections. However, there are events for most other types of input, so you could at least reduce the likelihood that your input event will become a fix if you check other types of events first. Consider the following:
(function () { var el = document.getElementById("MyInput"), ignore = false; el.oninput = function (e) {
This is not an ideal solution. For example, the event will still trigger Undo / Redo actions (and possibly some other actions) that are not triggered by the keyboard.
source share