how to do it if I click on the page, it disappears and another page pops up | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to do it if I click on the page, it disappears and another page pops up

3rd Mar 2021, 6:07 PM
Riselda Rada
Riselda Rada - avatar
12 Answers
+ 1
use anchor tag <a> example: <a href=“index.html” target=“_self”>Index Page</a> _self will open the page on the same tab. In your words, current page will disappear and new page (index.html) will be shown.
3rd Mar 2021, 6:12 PM
Sharique Khan
Sharique Khan - avatar
+ 4
Can u share the code link here? Riselda Rada I couldnt find it in your profile
3rd Mar 2021, 6:51 PM
Sharique Khan
Sharique Khan - avatar
+ 3
Riselda Rada I have msg you will discuss it there of what changes you want in your teachers day code
4th Mar 2021, 7:06 PM
Sharique Khan
Sharique Khan - avatar
+ 2
Happy To Help 😊 Riselda Rada
3rd Mar 2021, 6:45 PM
Sharique Khan
Sharique Khan - avatar
+ 2
if you want to make it look like your page has multiple pages. Create 2 div elements. put every thing you want on the first page in the first div element. And everything for the second page in the second div elements. Hide the second element with display none. make a button with an on click function that will unhide the second div and hide the first div.
4th Mar 2021, 10:24 AM
Chris Coder
Chris Coder - avatar
+ 1
Sharique Khan thank you
3rd Mar 2021, 6:45 PM
Riselda Rada
Riselda Rada - avatar
+ 1
It didn't work😥 Sharique Khan
3rd Mar 2021, 6:47 PM
Riselda Rada
Riselda Rada - avatar
+ 1
Sharique Khan Can you look in my page please , the code is called "Happy Teacher day " , after card (you can see) i want to appear something else , like writing sth or a message . What do you think
3rd Mar 2021, 6:48 PM
Riselda Rada
Riselda Rada - avatar
+ 1
You can only work from one html document in code playground at a time, therefore you can not have a link go to another page in the same project.
4th Mar 2021, 10:16 AM
Chris Coder
Chris Coder - avatar
+ 1
Riselda Rada judging by that code you already did what I suggested.
4th Mar 2021, 4:26 PM
Chris Coder
Chris Coder - avatar
4th Mar 2021, 2:51 PM
Riselda Rada
Riselda Rada - avatar
4th Mar 2021, 7:43 PM
Riselda Rada
Riselda Rada - avatar