I am making a website and I use jQuery to load my html pages inside divs, so the main index html remains intact that way. The problem is that if a user is browsing an html that loads inside a div and tries to refresh his browser(F5) the content gets "lost" since it's only one page(index.html).
Is there a way to get around this?
<a onclick='$("#content").load("page1.html");'>Page1</a>
<div id="content"></div>
$("#content").load("page1.html");on page load.