ဧရိယာ ပစ်မှတ် အိမ်ခြံမြေ
ဥပမာ
ပုံ-မြေပုံတစ်ခုရှိ ဧရိယာတစ်ခုအတွက် ပစ်မှတ်ကို ပြောင်းပါ-
document.getElementById("venus").target = "_blank";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပစ်မှတ်ပိုင်ဆိုင်မှုသည် ဧရိယာတစ်ခု၏ ပစ်မှတ်ရည်ညွှန်းချက်တန်ဖိုးကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
ပစ်မှတ်ရည်ညွှန်းချက်သည် လင့်ခ်ချိတ်ထားသောစာရွက်စာတမ်းကိုဖွင့်ရမည့်နေရာကို သတ်မှတ်ပေးသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
အထားအသို
ပစ်မှတ်ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
areaObject.target
ပစ်မှတ်ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
areaObject.target = "_blank|_self|_parent|_top|framename"
Value | Description |
---|---|
_blank | Open the linked document in a new window |
_self | Open the linked document in the same frame as it was clicked (this is default) |
_parent | Open the linked document in the parent frameset |
_top | Open the linked document in the full body of the window |
framename | Open the linked document in a named frame |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | လင့်ခ်ချိတ်ထားသော စာရွက်စာတမ်းကိုဖွင့်ရမည့်နေရာကို ကိုယ်စားပြုသော စာကြောင်းတစ်ခု |
---|
နောက်ထပ် ဥပမာများ
ဥပမာ
ပုံ-မြေပုံတစ်ခုတွင် သတ်မှတ်ထားသော ဧရိယာ၏ ပစ်မှတ်ကို ရယူပါ-
var x =
document.getElementById("venus").target;
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <area> ပစ်မှတ်ရည်ညွှန်းချက်
❮ ဧရိယာအရာဝတ္ထု