<body> <input type="date" onblur="document.getElementById('p').innerHTML='b';"> <p id="p">a</p> </body>