I would like to make an automatic copy of a div content from page 1 an paste it in a div on page 2 ? What\'s the best, easiest way to achieve this ?
This is easier done with jQuery but you can get the html of a div using innerHTML as such:
var div1 = document.getElementById('div1'),
div1html = div1.innerHTML;
Copying it to a div on a different page however would require some work..
I know this doesn't answer your question entirely, I'm just giving you some insight as to how to get the html of an element. Copying it, using JS, could go something like this:
var div2 = document.getElementById('div2')
div2.appendChild(div1.cloneNode(true));