HTML <input> formtarget Attribute
ဥပမာ
မတူညီသော ပစ်မှတ်ဝင်းဒိုးများဖြင့် တင်သွင်းရန် ခလုတ်နှစ်ခုပါသော ဖောင်ပုံစံ။
<form action="/action_page.php">
<input type="text" id="fname" name="fname"><br><br>
<label
for="lname">Last name:</label>
<input type="text" id="lname"
name="lname"><br><br>
<input type="submit" value="Submit as normal">
<input type="submit" formtarget="_blank" value="Submit to a new window">
</form>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရည်ညွှန်းချက်သည် ဖောင်တင်ပြီးနောက် ရရှိ သည့် formtarget
တုံ့ပြန်မှုကို ပြသရမည့်နေရာကို ညွှန်ပြသည့် အမည် သို့မဟုတ် သော့ချက်စကားလုံးကို သတ်မှတ်ပေးသည်။
ရည်ညွှန်းချက်သည် ဒြပ်စင် ၏ formtarget
အရည်အချင်းကို လွှမ်းမိုးသည် ။target
<form>
မှတ်ချက်- attribute formtarget
ကို
type="submit"
နှင့်
type="image"
.
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် attribute ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးပါသည်။
Attribute | |||||
---|---|---|---|---|---|
formtarget | Yes | 10.0 | Yes | 5.1 | 10.6 |
အထားအသို
<input formtarget="_blank|_self|_parent|_top|framename">
ရည်ညွှန်းတန်ဖိုးများ
Value | Description |
---|---|
_blank | The response is displayed in a new window or tab |
_self | The response is displayed in the same frame (this is default) |
_parent | The response is displayed in the parent frame |
_top | The response is displayed in the full body of the window |
framename | The response is displayed in a named iframe |
❮ HTML <input> tag