0

How to create new content on button on click in JavaScript?

Hello, I’m not very good at asking questions but I’d like to ask how to make new page content when a button is clicked. I know you don’t always do this by linking to a new page. For example... Page 1 - question 1 User clicks button Page 2 - Another page appears with question 2 A lot of people do this in SL and obviously they can’t link to a file page in code playground, how do I achieve this?

27th May 2020, 12:09 AM
Coder
Coder - avatar
6 ответов
+ 7
Simple demo of Single-paged app: https://code.sololearn.com/W80l0huYVkI5/?ref=app Full tutorial of a Quiz app (2 hour) : https://youtu.be/vv5kIqCD45c
27th May 2020, 12:33 AM
Gordon
Gordon - avatar
+ 3
Gordon Go to setup this microphone... https://www.sololearn.com/post/416297/?ref=app (Located at right bottom corner there)
27th May 2020, 6:25 AM
Calviղ
Calviղ - avatar
+ 2
Gordon wow 2 hours tutorial video, masterpiece 👍
27th May 2020, 2:00 AM
Calviղ
Calviղ - avatar
+ 1
27th May 2020, 6:50 AM
Gordon
Gordon - avatar
0
Gordon Thanks, but Im pretty bad at Javascript. Could you explain each part of the JS so I can do it accordingly? I wouldnt like to go through a 2 hour tutorial, thank you.
27th May 2020, 1:00 AM
Coder
Coder - avatar
0
Hira Ali ❤ In this case, you can refer to the short demo code. Calviղ Just soso 😂 I failed a import data.js in the middle and the sound is not good 😅
27th May 2020, 4:19 AM
Gordon
Gordon - avatar