使用dirname属性可让您提交文字方向。该值将是输入名称,后跟“。dir ”。
您可以尝试运行以下代码以使用dirname属性-
<!DOCTYPE html> <html> <body> <h2>Student Contact Form</h2> <form action = "mailto:emailid@example.com" method = "post" enctype = "text/plain"> Student Name:<br><input type = "text" name = "sname" dirname = "sname.dir"> <br> Student Subject:<br><input type = "text" name = "ssubject"><br> <input type = "submit" value = "Send"> </form> </body> </html>