<!DOCTYPE html>src="//libs.baidu.com/jquery/1.10.2/jquery.min.js"$(document).ready(function(){$("input").blur(function(){alert("This input field has lost its focus.");});});Enter your name: type="text"Write something in the input field, and then click outside the field to lose focus (blur).