Image.isMap

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

構文

画像オブジェクト.isMap

例文

<html>
 <head>
  <title>Image.isMap</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>

関連記事

スポンサーリンク

複数バージョンのIEを検証するツール

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る