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