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.
Tadyant s umata <a data-l10n-name="mdn-beforeinput">beforeinpt</a> tekker ɣef <a data-l10n-name="mdn-input">&lt;input&gt;</a> d <a data-l10n-name="mdn-textarea">&lt;textarea&gt;</a> yiferdisen, neɣ kra n uferdis iwumi yettwarmed yimyerr <a data-l10n-name="mdn-contenteditable">contenteditable</a>, send kan asnifel n wazal n uferdis.Tadyant ad teǧǧ isnasen n web ad  surfen tikli tamezwert n yiminig i temyigawt n useqdac, am., isnasen web zemren ad sfesxen asekcem n useqdac kan i yisekkilen yettwafernen neɣ zemren ad sniflen aḍris n wanaw kan inetḍen s yiɣunab yettuɣeblen.