How do i turn a submit button in html to login and go to another page. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i turn a submit button in html to login and go to another page.

29th Sep 2020, 9:08 PM
Cleen
Cleen - avatar
4 Answers
+ 3
<form action="www.page2.com" method=" " > <input type="submit"> </form> When you submit it will open up on www.page2.com
30th Sep 2020, 2:22 AM
Divya Mohan
Divya Mohan - avatar
+ 1
Use an image wrapped in an anchor tag <a hef="<URL>"><img src="<URL>" /></a> Or use a <button> which redirects to another page when clicked, using Javascript. https://www.w3schools.com/howto/howto_js_redirect_webpage.asp P.S. You should have tagged HTML instead of just 'help', the latter doesn't clarify context.
29th Sep 2020, 10:18 PM
Ipang
0
Thank you guys i will try these.
30th Sep 2020, 6:18 AM
Cleen
Cleen - avatar
0
Divya your idea worked good maybe you could help with my project on glitch.com you in.
1st Oct 2020, 1:18 PM
Cleen
Cleen - avatar