skelleex — 2011-10-06T13:06:32-04:00 — #1
felgall — 2011-10-06T14:11:06-04:00 — #2
and then use appendChild to attach the elements to the other elements and the page.
jv1 — 2011-10-06T14:57:52-04:00 — #3
var new_link = document.createElement('a');
new_link.href = 'http://www.google.com';
new_link.innerHTML = 'Go to Google!';