MasterPage Popup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I create a popup using masterpages?
Where do I put my javascript?

thanks
 
Hi

You can create popup window in the master page by placing the script before
the </head>.
Place the below code in the html part of the master page.

Html
<div>

<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">

</asp:contentplaceholder>

<input id="Button1" style="position: relative" type="button" value="button"
onclick="windowopen()"/>


</div>

The script to placed above the </head> section

Script

<script>

function windowopen()

{

window.open ("test.htm","mywindow","status=1");

}

</script>

Regards,

Valli

www.syncfusion.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top