Buttons | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Buttons

if the button is clicked, i need it to redirect to the next webpage. How do i do that? ** Thank You**

24th Apr 2018, 9:45 AM
KraziN
KraziN - avatar
3 Answers
+ 4
<a class="button" href="URL">Next</a> then customize the button class to make it look like a button also try looking through bootstrap and w3schools for "pager" or even "pagination", it seems like that's what you are going for
24th Apr 2018, 3:16 PM
MCJEH
MCJEH - avatar
+ 1
In JS you can window.location.assign(newurl) to load a new document
24th Apr 2018, 10:40 AM
KrOW
KrOW - avatar
+ 1
If you are trying to make a nav bar. Then use unordered list and style it to what you need.
24th Apr 2018, 10:47 AM
Akib
Akib - avatar