How to Visit other page without url loading | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to Visit other page without url loading

How can I visit other page without url loading using javascript in php or html technologies website like react , Gatsby or next js technologies of website does

15th Jan 2022, 10:37 PM
Aman Rajput
Aman Rajput - avatar
3 Answers
0
Hi Aman Rajput The web cannot run without urls You could use Ajax to request a php file and then sent it’s contents to the screen, that way you wont need to refresh the page is probably the best approach with vanilla js
16th Jan 2022, 10:49 PM
Ollie Q
Ollie Q - avatar
0
Oh! Nice I got your point, thanks for the valuable answer.
16th Jan 2022, 10:51 PM
Aman Rajput
Aman Rajput - avatar
0
You can create spa (single page app) using react, enable your website navigate to any page components without reload the page url.
18th Jan 2022, 12:52 PM
Calviղ
Calviղ - avatar