javascript - <input> onmouseenter don't work with left mouse button in Firefox, IE, Edge -


this code works perfect in chrome not in firefox, ie, edge.

<input type="text" readonly onmouseenter="this.style.backgroundcolor='red'" onmouseleave="this.style.backgroundcolor='white'">    <input type="text" readonly onmouseenter="this.style.backgroundcolor='red'" onmouseleave="this.style.backgroundcolor='white'">

when press left mouse button on first input , move on second input - color changes correctly in chrome. not in firefox, ie, edge (second input not recorded onmouseenter event).

with right , middle mouse button, works code perfect in broswers.

do know how fix it? why not work?

(i can use raw javascript in project)


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -