jason310771 Posted April 4, 2012 Share Posted April 4, 2012 Is there a way to... (without the need for JQuery) if(ismouseoverdiv) { // do something. } else { // do something else. } Quote Link to comment https://forums.phpfreaks.com/topic/260316-is-there-a-way-to-check-for-mouseover-div/ Share on other sites More sharing options...
joe92 Posted April 4, 2012 Share Posted April 4, 2012 Sure, add the event listener onmouseover. E.g.: <div onmouseover="alert('Mouse is over div!');">Example div</div> Quote Link to comment https://forums.phpfreaks.com/topic/260316-is-there-a-way-to-check-for-mouseover-div/#findComment-1334369 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.