0
How do I code on a new page so I can nav to page 2
1 Answer
+ 1
Within SoloLearn's code bits editor, you cannot have multiple pages. However, you can write a single-page application and use javascript to edit components of that single page. This works like multiple pages but technically is only one page.
Here is an example:
https://www.sololearn.com/en/compiler-playground/Ww74ViL7mMTl
Each time you click a button, content is replaced on the page. This is how many common websites are built. This technique helps to avoid reloading content again and again that's the same on every page. Things like header, footer, navigation load only once. Makes the site more respsonsive.