| getAttribute() | ใช้ในการคืนค่า ค่าข้อมูล ของ attribute ที่กำหนด |
|---|
method:getAttribute ( attribute_name );
return type:string
content:ใช้ในการคืนค่า ค่าข้อมูล ของ attribute ที่กำหนด
example:var tagDiv = document.getElementById ( "bamboo" ); alert ( tagDiv.getAttribute ( "id" ) );