M
Miguel Dias Moura
Hello,
i want to open a new window when a button is clicked. I am working in
ASP.net / VB. However my code is not working.
This is my Script Code:
<script runat="server">
Private Sub openNewWindow(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Response.Write("<script>window.open 'http://www.google.com', '_new',
'width=400, height=200, status=no, toolbar=no, menubar=no, location=no');
</script>")
End Sub
</script>
and this is my Button Code:
<asp:Button CssClass="button" ID="buttonID" runat="server" Text="Go"
onClick="openNewWindow"/>
Can you tell me what am i doing wrong?
Thank You,
Miguel
i want to open a new window when a button is clicked. I am working in
ASP.net / VB. However my code is not working.
This is my Script Code:
<script runat="server">
Private Sub openNewWindow(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Response.Write("<script>window.open 'http://www.google.com', '_new',
'width=400, height=200, status=no, toolbar=no, menubar=no, location=no');
</script>")
End Sub
</script>
and this is my Button Code:
<asp:Button CssClass="button" ID="buttonID" runat="server" Text="Go"
onClick="openNewWindow"/>
Can you tell me what am i doing wrong?
Thank You,
Miguel