Suppose i know the id of a div from other page - can plain java script can copy the content from one page to other page? This is my function with empty place for your answer (if that possible):
function copyPaste() {
var dataPage2 = 'path-to-data-div-from-page2'.innerHTML;
document.write ("<section id='example'></section>");
document.getElementById("example").innerHTML = dataPage2;
}