title: Want to show a message box using javascript
body: <p>Hi everyone I have a web form in which I am having a button on clicking which data back up is being taken, I used the following javascript :</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
     function showPleaseWait() {
         document.getElementById('PleaseWait').style.display = 'block';
     }
  &lt;/script&gt;
  
  &lt;asp:Button ID="btnTakebackup" runat="server" Text="Take Backup"  Enabled="true" 
     onMouseDown="showPleaseWait()" CausesValidation="false" /&gt;
  
  &lt;div id="PleaseWait" style="display: none;"&gt;"Please Wait Backup in Progress.."&lt;/div&gt;
  </code></pre>
  
  <p>Hi I am using a button to take a back up.</p>
  
  <p>Now I want to show a message in <code>btnTakebackup_Click()</code> event, whether Back up was successful or not.
  I used <code>Response.Write("&lt;script&gt;alert('abcd');&lt;/script&gt;");</code> in <code>btnTakebackup_Click()</code> event.
  But the problem is that I want to show the page also, which is not showing instead white background is showing.</p>
  
  <p>Thanks in advance...</p>