Cross-Browser Compatibility Strikes Again
You can bind the 'input' event to the textbox. This would fire every time the input changes, so when you paste something (even with right click), delete and type anything. $(''#myTextbox'').on(''input'', function() { // do something }); If you use the change handler, this will only fire after the user deselects the input box, which may not be what you want. There is an example of both here: http://jsfiddle.net/6bSX6/ This does not work in the Nintendo 3DS browser. The change is not detected even though the input field contains the new string. – Johan Jul 3 '13 at 11:30
A screenshot of a Stack Overflow answer explains how to handle textbox input events with JavaScript. The punchline is a comment noting that the solution still fails in the Nintendo 3DS browser, humorously highlighting the absurd difficulty of cross-browser compatibility and obscure legacy platforms.
Stack Overflow webpage / веб-страница Stack OverflowJavaScript code / код JavaScripttext input field / текстовое поле вводаbrowser window / окно браузераNintendo 3DS browser comment / комментарий о браузере Nintendo 3DSupvote arrows / стрелки голосованияgreen check mark / зелёная галочкаred comment border / красная рамка комментарияhyperlink / гиперссылкаwebpage text / текст веб-страницы
- @dev_meme / 830 2019-11-19
- Template
- Stack Overflow screenshot
- Type
- image
- Size
- 640×330 · 41.9 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added