G Guest Jun 27, 2006 #1 How can I create a popup using masterpages? Where do I put my javascript? thanks
V ValliM Jun 27, 2006 #2 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
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