English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Das dirname-Attribut aktiviert die Übermittlung der Textdirection der Eingabefelder. Der Wert des dirname-Attributs ist stets der Name des Eingabefeldes gefolgt von " .dir".
HTML-Formular, in dem der Textdirection der Eingabefelder übermittelt wird (bei der Übermittlung des Formulars werden auch die Textdirection der Eingabefelder übermittelt):
<!DOCTYPE html> <html> <head> <title>HTML: <input> dirname-Attribut - Grundlagen-Tutorial-Website(oldtoolbag.com)</title> <body> <form action="action_page.php"> First name: <input type="text" name="fname" dirname="fname.dir"> <input type="submit" value="Submit"> </form> </html>Test and See ‹/›
IEFirefoxOperaChromeSafari
Internet Explorer and Safari do not support the dirname attribute.
The dirname attribute enables the submission of the text direction of the input field.
The value of the dirname attribute is always the name of the input field followed by " .dir".
The dirname attribute is in HTML5New Features Added.
<input name="myname" dirname="myname.dir">
Value | Description |
---|---|
name.dir | The text direction of the specified input field will be submitted. |