<div id="div"><input type="text" value="click" /></div> <script type="text/javascript"> document.getElementById("div").getElementsByTagName('input')[0].onblur = function(){ alert('result'); }; </script>