title: Text input focus loss event
body: <p>I have the following page. I want to restore the input text if it has not been changed(when the focus is lost). How can I do this?</p>
  
  <pre>
  <code>
  &lt;html>
  &lt;head>
  &lt;/head>
  &lt;body>
  
  &lt;script type="text/javascript">
  function clearTextArea(object){
      object.value = "";
  }
  &lt;/script>
  
  &lt;input type="text" id="option" value="test" onfocus="clearTextArea(this);">&lt;/input>
  &lt;/body>
  &lt;/html>
  </code>
  </pre>