title: To show Modalpopup in JavaScript
body: <p>I have a modal popup extender as follows
   
          </p>
  
  <pre><code>&lt;div id="target" runat="server"&gt;&lt;/div&gt;
  &lt;cc1:ModalPopupExtender ID="ModalPopupExtender1" BehaviorID ="Modal"
      runat="server" TargetControlID="target"
      BackgroundCssClass="modalBackground"
      PopupControlID="Panel1"&gt;&lt;/cc1:ModalPopupExtender&gt;
  
  &lt;asp:Panel ID="Panel1" runat="server"&gt;
    &lt;asp:Login ID="Login1" Width="360px" Height="135px" BackColor="lightSteelBlue"
          LoginButtonStyle-BorderStyle="groove" TextBoxStyle-CssClass="textbox"
          LoginButtonStyle-CssClass="loginbutton" runat="server" &gt;
      &lt;TextBoxStyle CssClass="textbox" /&gt;
      &lt;LoginButtonStyle BorderStyle="Groove" CssClass="loginbutton" /&gt;
    &lt;/asp:Login&gt;
  &lt;/asp:Panel&gt;
  </code></pre>
  
  <p>On clicking on one button i have to show modalpopup.
  What code i can write in JavaScript to call modalpopup.Can anybody help.</p>