ag3nt42 Posted July 18, 2008 Share Posted July 18, 2008 i'm running a script where I find the need to check wether or not an input has focus i've tried if(document.getElementById('element').focus()) { alert('This Element Has Focus!') } but i'm getting errors any help is much appreciated.. thanks ag3nt42 Link to comment https://forums.phpfreaks.com/topic/115488-solved-how-to-check-if-element-has-focus/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.