I am trying to grab the contents of a When someone visits the homepage again, I would
Without seeing your markup and code it's hard to know what might be the problem, you should be able to do something like the following
On the first page:
$(function() {
localStorage["myKey"] = JSON.stringify($("#divWithContents").html());
});
On the page you want the contents displayed:
$(function() {
if (localStorage["myKey"] != null) {
var contentsOfOldDiv = JSON.parse(localStorage["myKey"]);
$("divWhereIwantStuffDisplayed").html(contentsOfOldDiv);
}
});