/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 window.onload = function() { for (i=0; i<form.elements.length-1; i++) { elem = document.forms['quick_reply'].elements[i]; elem.focused = false; elem.hasFocus = function() { return this.focused; }; elem.onfocus=function() { this.focused=true; }; elem.onblur=function() { this.focused=false; }; } }
URL: http://www.ozzu.com/programming-forum/using-javascript-check-the-focus-element-t76858.html
Comments
                    Subscribe to comments
                
                