+ 5
Navigation with buttons.
How can we make a button, like when we click on that button it opens a new webpage. That is different from the home page.
37 Respuestas
+ 3
Using :target in CSS: https://code.sololearn.com/WKfEumLBy619/?ref=app
+ 4
Itoroabasi Unang Listen.
Suppose i am making a webpage on sololearn . There is a homepage, and there are buttons on it. The pages that are connected with the buttons are not visible on the homepage. If we click on the button we navigate to the other webpage that is coded on the same code and is there on sololearn in the same code the homepage is. How can we make it?
+ 4
Itoroabasi Unang can you make a code like that?
+ 4
Janning⭐ an example code
+ 4
Yeah. This just seems really lazy on your part. It's one thing if you don't have the answer or if you don't understand something specific, but not being able to copy and paste doesn't bode well in the long run.
+ 4
Janning⭐ the thing given in the website is that if we hover on the button it shows opacity 1 but how to change it to onclick
+ 3
Itoroabasi Unang i want the codes of all the pages in one code
+ 3
Itoroabasi Unang Janning⭐
I want a code like this where an alternate webpage opens after clicking on a button
https://code.sololearn.com/Wz74p5TTP0n3/?ref=app
+ 3
Nguyễn Văn Hoàng can u make the code for the easiest method
+ 3
Janning⭐ sorry posted the wrong one see now
+ 3
Janning⭐ can u make an example code and explain me better
+ 3
Janning⭐ thnx. I understood well. Still can u provide me with a code for better understanding.
+ 3
Janning⭐ still can u make an example code in sololearn. ?
+ 3
Janning⭐ Nguyễn Văn Hoàng i didn't meant that. I meant that if u people have time then provide me with the code coz i often commit mistakes.
+ 2
You can wrap the button in an anchor tag
example <a href="..."><button...>button text</button></a>
Hope this helps?
+ 2
Itoroabasi Unang I want the that page to come up that is in the code but is different from the homepage and is not visible by default, and we can view it only by clicking that button. I want to make this type of thing
+ 2
Do you mean you want a link for the page to appear on you homepage when a button is clicked? or you want a new page to load when the button is clicked? Or do you need the new page to pop up while the user is still on your homepage?
+ 2
Itoroabasi Unang i want a new page to load when the button is clicked. In sololearn
+ 2
I think you should try coding each page separately and assigning their links to their respective buttons. That will work.
+ 2
Yes. each code will be posted as a separate code, then you copy their links and paste on the homepage buttons assigned for each webpage.