+ 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.

10th Aug 2018, 8:18 AM
***
38 RĂ©ponses
10th Aug 2018, 7:30 PM
Quincy
+ 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?
10th Aug 2018, 9:41 AM
***
+ 4
Itoroabasi Unang can you make a code like that?
10th Aug 2018, 9:49 AM
***
+ 4
Janning⭐ an example code
10th Aug 2018, 10:37 AM
***
+ 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.
10th Aug 2018, 10:41 AM
Janning⭐
Janning⭐ - avatar
+ 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
10th Aug 2018, 11:44 AM
***
+ 3
Itoroabasi Unang i want the codes of all the pages in one code
10th Aug 2018, 9:53 AM
***
+ 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
10th Aug 2018, 10:06 AM
***
+ 3
Nguyễn Văn HoĂ ng can u make the code for the easiest method
10th Aug 2018, 10:13 AM
***
+ 3
Janning⭐ sorry posted the wrong one see now
10th Aug 2018, 10:14 AM
***
+ 3
Janning⭐ can u make an example code and explain me better
10th Aug 2018, 10:22 AM
***
+ 3
Janning⭐ thnx. I understood well. Still can u provide me with a code for better understanding.
10th Aug 2018, 10:35 AM
***
+ 3
Janning⭐ still can u make an example code in sololearn. ?
10th Aug 2018, 10:38 AM
***
+ 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.
10th Aug 2018, 11:40 AM
***
+ 2
You can wrap the button in an anchor tag example <a href="..."><button...>button text</button></a> Hope this helps?
10th Aug 2018, 8:56 AM
Itoroabasi Unang
Itoroabasi Unang - avatar
+ 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
10th Aug 2018, 9:10 AM
***
+ 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?
10th Aug 2018, 9:17 AM
Itoroabasi Unang
Itoroabasi Unang - avatar
+ 2
Itoroabasi Unang i want a new page to load when the button is clicked. In sololearn
10th Aug 2018, 9:19 AM
***
+ 2
I think you should try coding each page separately and assigning their links to their respective buttons. That will work.
10th Aug 2018, 9:47 AM
Itoroabasi Unang
Itoroabasi Unang - avatar
+ 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.
10th Aug 2018, 9:52 AM
Itoroabasi Unang
Itoroabasi Unang - avatar