Mozilla.com

  1. MDC
  2. メインページ
  3. DOM
  4. document.anchors
目次
  1. 1. 概要
  2. 2. 構文
  3. 3.
  4. 4. 注記
  5. 5. 仕様
目次
  1. 1. 概要
  2. 2. 構文
  3. 3.
  4. 4. 注記
  5. 5. 仕様

« Gecko DOM リファレンス

概要

anchors はドキュメント内のすべてのアンカーのリストを返します。

構文

nodeList = document.anchors 

if ( document.anchors.length >= 5 ) {
    dump("dump found too many anchors");
    window.location = "http://www.google.com";
}

注記

後方互換性のため、返されるアンカーのセットにはname属性付きで作成されたアンカーのみ含まれ、id属性付きで作成されたものは含まれません。

このページは2007年 7月 2日, 16:51に更新されました by DR

ファイル (0)