Suppose I have the following code:
<h1><h1> <div class = "content"> // 这个iframe不占用整个页面 <iframe src = "/fileB.html"></iframe> </div>
Now, display the page from fileB in `<div class = "content">`.
But in fileB, I have:
<a href = 'fileC.html'></a>
Normally, when I click `<a>`, the content will go from fileB to fileC, but when I click the browser's refresh button, the div will switch back to fileB. So, how can I keep the page staying on fileC when I click the refresh button.
Thanks:)
I'm hoping someone can show me the code I need to put in and clearly state which JS file is for which HTML file.
Maybe like this
fileB.html
fileC.html
After the user clicks "Go to file C" in fileB.html, the user will be redirected to fileC.html, and then the user will refresh the page and still stay on the fileC.html page. You can modify it as needed.