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