Jump to content

Button redirect to another page | Help!


ItsLaunch
 Share

Recommended Posts

If you just want a link to another page, just use an <a> tag with an href attribute and then use CSS to make it look like a button.

If this button belongs to a form, you can set the form's action attribute.

Link to comment
Share on other sites

You want to pass which page is redirect on when click submit button to add action attribute on form tag and method attribute 

<form action="/home" method="Post">

<input type="Submit" class="btn" value="Login">

</form>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...