title: Reload and display message
body: <p>I want to reload page after deleting a row from table, and then display message. Below is the JavaScript code:</p>
  
  <pre><code>if(action == 'delete'){
    window.location.reload(true);
    //tried to set timeout here, no luck :(
    document.getElementById('messageSpan').innerHTML = "The value has been deleted."; 
  }
  </code></pre>
  
  <p>It seems that the reload function is executed after the <code>messageSpan</code> content has been changed, so the reload function wipes out the <code>messageSpan</code> content.</p>