Code
Execute
<!DOCTYPE html> <html> <head> <title>html tutorial - html5 - html code - html form - In 30Sec by Microsoft Award MVP - | wikitechy HTML dirname Attribute</title> </head> <body> <form action="dirname.html" onsubmit="alert('Submitted!');return false;"> Enter the text: <input type="text" name="txtname" dirname="txtname.dir"> <input type="submit" value="Submit"> </form> </body> </html>
Result