ライブラリを読み込む

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<script type="text/javascript" src="js/prototype.js" charset="shift_jis"></script>
</head>
<body>
<h1>Prototypeライブラリを読み込む</h1>
<script type="text/javascript"><!--
try {
if(Prototype){
document.write("Prototypeライブラリを読み込みました");
}
}catch(e){
document.write("読み込めませんでした");
}
// --></script>
</body>
</html>
サンプルを実行
[戻る]
prototype.jsパーフェクトリファレンス説明などは本書を参考にしてください。