HTML DOM Object သည် Object ဖြစ်သည်။
ဝထ္ထဝထ္ထု
Object object သည် HTML <object> element ကို ကိုယ်စားပြုသည်။
Object အရာဝတ္တုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <object> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
ဥပမာ
var x = document.getElementById("myObject");
Object တစ်ခု ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <object> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("OBJECT");
Object Properties များ
Property | Description |
---|---|
align | Not supported in HTML5. Use
style.cssFloat instead. Sets or returns the alignment of the object according to the surrounding text |
archive | Not supported in HTML5. Sets or returns a string that can be used to implement your own archive functionality for the object |
border | Not supported in HTML5. Use
style.border instead. Sets or returns the border around the object |
code | Not supported in HTML5. Sets or returns the URL of the file that contains the compiled Java class |
codeBase | Not supported in HTML5. Sets or returns the URL of the component |
codeType | Not supported in HTML5. |
data | Sets or returns the URL of the resource to be used by the object |
declare | Not supported in HTML5. |
form | Returns a reference to the object's parent form |
height | Sets or returns the height of the object |
hspace | Not supported in HTML5. Use
style.margin instead. Sets or returns the horizontal margin of the object |
name | Sets or returns the name of the object |
standby | Not supported in HTML5. Sets or returns a message when loading the object |
type | Sets or returns the content type for data downloaded via the data attribute |
useMap | Sets or returns the name of a client-side image map to be used with the object |
vspace | Not supported in HTML5. Use
style.margin instead. Sets or returns the vertical margin of the object |
width | Sets or returns the width of the object |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Object object သည် စံ ဂုဏ်သတ္တိများ နှင့် အဖြစ်အပျက်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <object> တဂ်