Image.isMap

書式

画像オブジェクト.isMap

説明

サーバーサイドクリッカブルマップの場合はtrue、クライアントサイドクリッカブルマップの場合はfalseを返します。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<script type="text/javascript"><!--
window.onload = function() {
var txt = document.getElementById("myPhoto").isMap;
document.getElementById("result").innerHTML = txt;
}
// --></script>
</head>
<body>
<img src="photo.gif" id="myPhoto" usemap="#map1">
<map name="map1">
<area shape="rect" coords="0,0,32,10" href="1.html">
</map>
<div id="result"></div>
</body>
</html>