HTML <input> formaction Özellik
Örnek
Farklı eylemlere sahip iki gönder düğmesi olan bir HTML formu:
<form action="/action_page.php">
<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">
<input type="submit" formaction="/action_page2.php"
value="Submit to another page">
</form>
Tanım ve Kullanım
Nitelik formaction
, form gönderildiğinde giriş kontrolünü işleyecek dosyanın URL'sini belirtir.
Öznitelik, öğenin formaction
özniteliğini geçersiz kılar .action
<form>
Not: Öznitelik ve formaction
ile birlikte kullanılır .
type="submit"
type="image"
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Attribute | |||||
---|---|---|---|---|---|
formaction | Yes | 10.0 | Yes | 5.1 | 10.6 |
Sözdizimi
<input formaction="URL">
Özellik Değerleri
Value | Description |
---|---|
URL | Specifies the URL of the file that will process the input control when the form is submitted. Possible values:
|
❮ HTML <input> etiketi