このページのJavaScript
function change() {
document.getElementById("link").href = "http://www.google.co.jp";
document.getElementById("link").firstChild.nodeValue = "Google"
document.getElementById("paragraph").align = "center";
}
paragraph
このページは、「タグを変更する」のサンプルプログラムです。