Try localStorage
The localStorage object stores the data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or year.
In your index.html you could replace your
<a href="HelpFiles.html" class="readMore">Read more...</a>
with
<a href="HelpFiles.html?page=products" class="readMore">Read more...</a>
Add this script on the top of this page
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
$(".itemContent .readMore").click(function(){
var imgName = $(this).parent().parent().find("img").attr("src");
url = $(this).attr("href"); //Gets the url from the anchor tag clicked
var page = url.split("?page=");
localStorage.setItem("pageName", page[1]);
localStorage.setItem("imageName", imgName);
});
});
</script>
In your helpfiles.html you have to add the following script on top
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
var pageName = localStorage.getItem("pageName");
var imagepath =localStorage.getItem("imageName");
$("#helpFiles").load(pageName+".html");
});
</script>
Hope this might give you an idea mate.. :)
FYI
localStorage
load()