The global <a data-l10n-name="mdn-beforeinput">beforeinput</a> event is fired on an <a data-l10n-name="mdn-input">&lt;input&gt;</a> and <a data-l10n-name="mdn-textarea">&lt;textarea&gt;</a> elements, or any element whose <a data-l10n-name="mdn-contenteditable">contenteditable</a> attribute is enabled, immediately before the element’s value changes. The event allows web apps to override the browser’s default behavior for user interaction, e.g., web apps can cancel user input only for specific characters or can modify pasting styled text only with approved styles.
Ri chijun nimaq'ij <a data-l10n-name="mdn-beforeinput">beforeinput</a> nitzij pa wachinäq <a data-l10n-name="mdn-input">input&gt;</a> chuqa' <a data-l10n-name="mdn-textarea">&lt;textarea&gt;</a> o xab'achike wachinäq ruk'wan<a data-l10n-name="mdn-contenteditable">contentenditable</a> tzijïl, chuwäch nujäl ri' ri rejqalem wachinäq. Ri samaj nuya' q'ij chi ri ajk'amaya'l chokoy nujäl rub'anikil ri okik'amaya'l richin nisamäj ri okisanel, akuchi' nuya' q'ij chi ri ajk'amaya'l taq chokoy nuq'ät koken okisanela' rik'in xa xe jikïl taq tz'ib' o nuya' q'ij nikitz'ib'aj jikïl taq tz'ib' o nikijäl rujalik tz'ib' rik'in rub'anikil, akuchi' nuya' q'ij  xa xe chi ke ri jikib'an taq b'anikil