Forum Moderators: open
IE 6 has a method, hasFocus(), that checks for a document having focus, but I don't believe it's granular enough to do what you want. It returns a Boolean true if the document or any of its elements has focus. You do realize createRange() is IE-only?