So, I have many lines of Javascript codes which is quite unorganized right now.
One function among many function is doing some action on ‘hover’ event, however I cannot find it by just looking through the codes.
I am wondering if it is possible to catch which function cause on hover event with google chrome browser’s ‘Console.log’
There is no native “hover” event on the dom api. There are on the other hand the next best things : mouseenter, mouseleave and mouseover, mouseout. Internally you will find that the jQuery library treats “hover” events as a combination of events where when you mouseenter it fires the first function, when you leave it fires the second method. You can find jQuery documentation on hover here.