Home  »  Code Snippets  »  ASP.Net  »

Open a Popup window from asp.net webpage

 Posted By : Soumya Ranjan SahooPosted Date : 18/11/2010 04:03:55 PM Category : ASP.Net Points : 3

Use the below javascript code:

<script type="text/javascript">
function basicPopup()
{
popupWindow = window.open("http://www.google.com",'popUpWindow','height=620,width=1000,left=100,top=30,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no, status=yes');
}
</script>

In place of 'http://www.google.com', you can give the path of the page, you want to open.

 

Now call the javascript function here:

<asp:Button ID="Button2" runat="server" Text="Popup" OnClientClick="basicPopup();return false;"/>

 

 

Responses
 Author : Manoranjan Sahoo Member Level : BronzeDate : 18/11/2010 05:33:38 PM Points : 2

good one....

thanks to share this code snippets...



Post Reply
Login to post Response.