window.onload=function() { document.getElementById('a').appendChild(document.getElementById('b')); }