Thursday, February 3, 2011

Open a Popup window from asp.net webpage

<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>
<asp:Button ID="Button2" runat="server" Text="Popup" OnClientClick="basicPopup();return false;"/>

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Wallpapers collections