<html>
<head>
<script language="javascript" type="text/javascript">
function changeTitle(){
document.getElementById('title').style.fontSize='16px';
}
function changeLink(){
document.getElementById('link').href='http://www.google.com';
document.getElementById('link').childNodes[0].nodeValue='google';
}
</script>
</head>
<body>
<h1 id="title">サンプル</h1>
<a href="http://www.yahoo.co.jp" id="link">Yahoo</a>
<hr />
<input type="button" name="b1" value="タイトル変更" onclick="changeTitle()" />
<input type="button" name="b2" value="リンク変更" onclick="changeLink()" />
</body>
</html>
AJAXアイデアブックという本を手に入れたので、Ajaxを勉強開始。
とりあえずDHTMLから。