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

Html button

Please how can I make my button to display a text when it is being clicked and when it it being clicked again a next page would show?

16th Mar 2024, 11:05 AM
Lordbernard
Lordbernard - avatar
4 Answers
+ 2
I think you are looking for similar to this one: (just to have a nice button!) https://getbootstrap.com/docs/5.3/components/buttons/ (at the moment this is the latest documentation) but for those kinds of interactions you have to use javascript
16th Mar 2024, 12:17 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 1
Okay thanks
16th Mar 2024, 12:18 PM
Lordbernard
Lordbernard - avatar
0
Most people confuse Java and Javascript ... they are not the same language . From your profile I don't see Java. Do not shorten Javascript to Java. It is wrong and confusing. Are you sure it is Java?
17th Mar 2024, 1:02 AM
Bob_Li
Bob_Li - avatar
0
Ookay
17th Mar 2024, 6:42 AM
Lordbernard
Lordbernard - avatar