Jump to content

Button redirect to another page | Help!

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 post
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">



Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...