HTML <input> formaction Attribute
Definition and Usage
formaction
attribute that specifies the URL of the file to be processed when the form is submitted.
formaction
attribute overrides the action attribute.
Note:formaction
attributes with type="submit" and type="image" used together.
Example
HTML form with two submit buttons, set with different action URLs:
<form action="/action_page.php"> <label for="fname">name:</label> <input type="text" id="fname" name="fname"><br><br> <label for="lname">surname:</label> <input type="text" id="lname" name="lname"><br><br> <input type="submit" value="submit"> <input type="submit" formaction="/action_page2.php" value="إرسال إلى صفحة أخرى"> </form>
النحو
<input formaction="URL">
قيمة الخاصية
القيمة | الوصف |
---|---|
URL |
يحدد URL الملف الذي سيتم معالجته عند تقديم النموذج. القيم الممكنة:
|
دعم المتصفح
الرقم في الجدول يشير إلى إصدار المتصفح الذي يدعم هذه الخاصية تمامًا.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
الدعم | 10.0 | الدعم | 5.1 | 10.6 |