All Forums >> [Scripting] >> ASP >> redirect page by clicking a button Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I try to design a webpage which contains a button and by clicking the button the browser will display another webpage. The following does not work. Thank you for any suggestions!
xihu
quote:<SCRIPT LANGUAGE="vbscript" RunAt="Server"> Sub btnAction_onclick() Call Response.Redirect ("nextPage.asp") End Sub </SCRIPT> <HTML> <BODY> <FORM method="post" id="frmAction" name="frmAction"> <INPUT type="button" name="btnAction" value="Act"> </FORM> </BODY> </HTML>
Private Sub cmdRenewOnline_Click() Dim ie As New InternetExplorer ''''''''''''''''''''''''''''''''' 'Add your functionalityCode here' ''''''''''''''''''''''''''''''''' 'cmbMonths.SetFocus 'If (cmbMonths.Text = "") Then 'MsgBox ("Please select number of months") 'cmbMonths.SetFocus Exit Sub End If