运行 ❯
获取您
自己
的网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <form action="/action_page_binary.asp" method="post" enctype="application/x-www-form-urlencoded"> Name: <input type="text" name="fname" value="St�le Refsnes"><br> <input type="submit" id="mySubmit" formenctype="text/plain" value="Submit"> </form> <p>Click the "Try it" button to display the value of the formenctype attribute of the submit button above.</p> <p>Notice that the formenctype attribute overrides the HTML form's enctype attribute (application/x-www-form-urlencoded).</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var x = document.getElementById("mySubmit").formEnctype; document.getElementById("demo").innerHTML = x; } </script> </body> </html>