+ 1

Making A New Page Without Changing The Page

I basically want to make it so that if you press a button, it will change the features of the page to a different section of the code but doesn’t switch web pages.

14th Nov 2019, 12:52 AM
Copyright Gamezz
Copyright Gamezz - avatar
2 Answers
What you need is a Single Page Application. Traditionally SPA was developed using only ajax. But now there are good JavaScript libraries like React js for developing Single Page Application.
14th Nov 2019, 10:17 AM
Rishi Anand
Rishi Anand - avatar
If you mean something like a onepager you can jump to other areas of your website by using <a> tags like this: <a href="#id_of_some_element_on_your_page">Link</a> If you would like to change your page content without reloading it you have to use AJAX.
15th Nov 2019, 3:54 PM
Mariuch - avatar