full webpage for replacing old page with it. when I use document.open(), document.write(*), document.close(), the new page is loading in browser but the old page contents also stays in browser as seen in dev tools and those are creating same name variable error with the new page's js file. how to solve this issue? can't use window.location.href as using authorization here.
also the new page's html is not showing under content tab. rather the old html file is still there. new page's js and css files are loading though and browser is catually displaying the new page.
What problem are you actually trying to solve?
after user logs in, i want to load the home page in the same tab. for that i am using document.write() method to replace the login page content.
You know that when clicking a link that this is exactly what the browser does? It's a full page reload, you don't need JS for that
how to do that after verifying user credentials at server end?
Обсуждают сегодня