+ 4
Can I add a link on the button code to change a page ?
sinup to sign https://code.sololearn.com/WpLKwtwEXNF7/?ref=app look in the bottom to <button>code .
12 odpowiedzi
+ 1
Janning⭐ Dev Alexander Sokolov fisal this answer I looking for :
<a href="http://www.google.com/"> <input type="button" value="Visit Google" /> </a>
+ 4
Hello, Omar Khalil Bakhsh !
suitable sites were found for your question.
https://developer.mozilla.org/en/docs/Web/API/History_API
+ 2
Alexander Sokolov what is that ?
+ 1
Hi Omar Khalil Bakhsh ,
I think Alexander's posts probably do answer your question, but it's kind of hard to tell because I'm not really sure what you want the effect of the link to be when you only say "change a page". Would you mind elaborating? There may be a simpler answer, or there might not be.
+ 1
ok how to move from page 1 to page 2
+ 1
Omar Khalil Bakhsh , where is page 2? Does it have a URL?
+ 1
Janning⭐ any page example
this page : https://code.sololearn.com/WseGN4TjIrVP/?ref=app
.............
just want to know how i do it right way .
+ 1
Hi Omar Khalil Bakhsh ,
There are a few implementation options. Please see:
https://stackoverflow.com/questions/3303675/how-to-make-an-input-type-button-act-like-a-hyperlink-and-redirect-using-a-get-r
I hope this helps! :)
+ 1
thanks all 💖💖💖💖
+ 1
Anytime! 👍
+ 1
Very Simple
<a href="yourlink"> <input type="button" value="button-text" /> </a>