Fire the same event by calling another event handler - Javascript DOM Event

Javascript examples for DOM Event:oninput

Description

Fire the same event by calling another event handler

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> //from  w w w. j a va  2  s. c o  m
 <body> 
  <input id="x" type="text" name="x" oninput="console.log('test');" onfocus="this.oninput();">  
 </body>
</html>

Related Tutorials