References

Collection of references for web development.

HTML onsearch event

Description

Execute JavaScript code when the user presses the enter key or clicks the X in an input field with the type attribute set to "search".

Example

<input type="search" onsearch="myFunction()">