javascript - Detect texbox clear-event in IE. How do I clear the input type="text" (textbox) in IE (Internet Explorer) when IE-specific clear-box is clicked? -
in internet explorer, there little x-like button shown, when start typing in textbox. how detect event when icon clicked on? there event-type?
<input type="text" value ="" id ="qsearch" name="qsearch" onblur="qsearchlookup(this.value);" onclick="qsearchlookup(this.value);" onkeyup="qsearchlookup(this.value)" size="26"> function qsearchlookup(searchval){ document.getelementbyid("qsearch").value=""; } 
i not know special event small x-like button, , don't think exists, can use input event (oninput="qsearchlookup(this.value)" in case) catch change.
Comments
Post a Comment