HTML <form> ပစ်မှတ် Attribute
ဥပမာ
ဝင်းဒိုးအသစ် သို့မဟုတ် တက်ဘ်တွင် လက်ခံရရှိသည့် တုံ့ပြန်မှုကို ပြသပါ-
<form action="/action_page.php"
method="get" target="_blank">
<label for="fname">First name:</label>
<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">
</form>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရည်ညွှန်းချက်သည် ဖောင်တင်ပြီးနောက် ရရှိ သည့် target
တုံ့ပြန်မှုကို ပြသရမည့်နေရာကို ညွှန်ပြသည့် အမည် သို့မဟုတ် သော့ချက်စကားလုံးကို သတ်မှတ်ပေးသည်။
target
ရည်ညွှန်းချက်သည် ရှာဖွေခြင်းဆိုင်ရာ အကြောင်းအရာ (ဥပမာ တက်ဘ်၊ ဝင်းဒိုး သို့မဟုတ် လိုင်းဘောင်) ၏ အမည် သို့မဟုတ် သော့ချက်စကားလုံးကို သတ်မှတ်သည် ။
Browser ပံ့ပိုးမှု
Attribute | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
အထားအသို
<form target="_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 <form> tag