Please note: I do not want to use jQuery for this (otherwise I like it)
Problem: I came in a situation where I need to execute some javascript function after the user changes the input field (for example, input type = "text"). So I said to myself: I remember the onchange event - the BUT onchange event is onchange AFTER the user leaves the field, but I need a function that should be called, for example, every time the user enters a character in this field. Wowhead shows a good example of what I'm trying to achieve this (field with a placeholder "Search by results ...")
Summary: I'm looking for a SIMPLE way to detect a REAL onchange event ( not classic HTML code ) and through this call a JS function without using jQuery ?
Thanks in advance!:)
source share