property:id;return type:string, voidcontent:ใช้ในการกำหนดค่า หรือคืนค่า id ของ imageexample:var tagImg = document.getElementById ( "bamboo" ); alert ( tagImg.id );