■リンク、アンカーを設定したい


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>リンク、アンカーを設定したい</title>
</head>
<body>
<p>■リンク、アンカーを設定したい</p>
<script type="text/JavaScript">
<!--
document.write("<p>"+"GOOのWebサイト".link("http://www.goo.ne.jp/index.html")+"</p>");
document.write("<p>"+"ドキュメント内のアンカーにジャンプする".link("#end")+"</p>");
document.write("<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>");
document.write("<p>"+"ここが設定したアンカー位置です".anchor("end")+"</p>");
document.write("<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>");
</script>
</body>
</html>


★解説★