Have a div
<div id="wre" style="padding: 5px;border: 1px solid #000;" >text</div>
How to make sure that when you lose focus, the text in this div changes? for example, if I click on this div, then nothing will happen, and if I click behind its chapels, the text will change there