<input id="id" type="text" onblur="if (this.value == 'test') { document.getElementById('div').style.display = 'block'} else {document.getElementById('div').style.display = 'none'}" value="">
<div id="div" style="display:none; width: 100px; height: 50px; background: green;"></div>