How to create multiple pages with javascript? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

How to create multiple pages with javascript?

Turning the web I saw some projects that included the display of multiple pages, hiding them with javascript functions and calling them when a button was clicked or qigued something in a search label, can someone explain how it works, even through a practical example? Thanks a lot to everyone for the help and support friends !!

2nd Jan 2019, 8:09 AM
<StraMa/Design>
<StraMa/Design> - avatar
4 Respostas
+ 2
Hi Maurizio Strazzullo, To accomplish this you can use JQuery, Create 4 div elements whichs acts as 4 pages. Have a look at these 2 snippets, hope it helpsšŸ‘šŸ˜Š https://code.sololearn.com/Wca2UA7UeWbp/?ref=app https://code.sololearn.com/W44R8XlFg2Uq/?ref=app
2nd Jan 2019, 12:51 PM
šŸŒ“Vincent BergeršŸŒ“
šŸŒ“Vincent BergeršŸŒ“ - avatar
+ 1
šŸŒ“Vincent BergeršŸŒ“ It's exactly what I was looking for !! šŸŽŠšŸŽ‰ can you explain how it works?
2nd Jan 2019, 4:16 PM
<StraMa/Design>
<StraMa/Design> - avatar
0
Possibly is is just: OnClick - display block division
2nd Jan 2019, 8:59 AM
Niush
Niush - avatar
0
Maurizio Strazzullo, The tabs(menu) interact with JQuery to display the content(page/div) that is assigned with the tab. Have a look at the changes, hope it helpsšŸ‘ https://code.sololearn.com/WJRTIIESLSX6/?ref=app
2nd Jan 2019, 5:00 PM
šŸŒ“Vincent BergeršŸŒ“
šŸŒ“Vincent BergeršŸŒ“ - avatar