Button Question? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Button Question?

How do I make a button go to another page when I click it?

21st Dec 2017, 4:54 AM
AClue
AClue - avatar
2 Answers
+ 5
in html The plain HTML way is to put it in a <form> wherein you specify the desired target URL in the action attribute. <form action="http://"path"> <input type="submit" value="path" /> </form> in css <a href="http://path" class="button">Go to Google</a> in javascript <input type="button" onclick="location.href='http://path;" value="path" />
21st Dec 2017, 5:15 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
Write more clearly your question! and then people will help you! what exactly are you interested in? what is your goal :)
21st Dec 2017, 5:15 AM
James16
James16 - avatar