copy <body> to <div>

copy <body> to <div>

I have pages A.html and B.html.

On the A.html page, I have
<div id="foo"></div>

From B.html, I want to copy the contents of the BODY element into the foo DIV.

What does jQuery code look like?