入門DOM

getElementsByTagName
getElementById
$("hogehoge")←prototype.js
getElementByName


NodeList
item
length

hasChildNodes
childNodes
firstChild
nodeValue
nodeType
nodeName


className


getAttribute/setAttributeのclass属性
ie:className
ie以外:class

スタイルの操作・イベントのハンドリング→DOMの規定に沿う

document.getElementById('img').attributes.item(i).nodeName

document.getElementById('img').attributesの戻り値・・・NameNodeMap


標準DOMスクリプティング JavaScript+DOMによるWebアプリデザインの基礎
標準DOMスクリプティング JavaScript+DOMによるWebアプリデザインの基礎羽田野 太巳

ソフトバンククリエイティブ 2007-01-16
売り上げランキング : 20752

おすすめ平均 star
star最近のHTMLに再入門する人にお勧め

Amazonで詳しく見る
by G-Tools