バージョンを調べる

書式

str = Prototype.Version

str : バージョンを示す文字列

説明

prototype.jsのバージョンはPrototype.Versionプロパティに入っています。内容はバージョンを示す文字列になります。(例:1.4.0、1.5.0_rc0など)

サンプルコード [実行]

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<link rel="stylesheet" href="main.css" type="text/css" media="all">
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript"><!--
window.onload = function ()
{
$("result").innerHTML = Prototype.Version;
}
// --></script>
</head>
<body>
<h1>Prototype.jsのバージョンを調べる</h1>
<div id="result"></div>
</body>
</html>