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. } 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> 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
Archived
This topic is now archived and is closed to further replies.