old content of browser and set new content without page reload?
The browser will do it automatically on a full page reload
If you want to do a partial reload use a framework like HTMX
yes that automatically happens when a new url is put in the browser. can it be done mamually?
Full page reload doesn't only happen when the URL changes. If you hit F5 you're doing a manual full page reload to the same URL for example
location.reload() in JS also does a full page reload
got your point. i meant if i have some html page content and i want to display that and also make sure that no old content stays in the browser. is there any way to do it manually without full page reload?
i don't fully understand your problem but why you don't use React? i think it do what you want.
Do you fully control the server?
Just make the server send a redirect response so the browser does a full page reload automatically
yes i can use the ready made frameworks but want to understand that if it can be done at more basic level with js code.
ok will try that.
Обсуждают сегодня