執行 ❯
建立您
自己的
網站
×
改變方向
儲存程式碼
改變主題,暗/亮
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>JavaScript Validation</h2> <form action="/action_page.php" method="post"> <input type="text" name="fname" required> <input type="submit" value="Submit"> </form> <p>If you click submit, without filling out the text field, your browser will display an error message.</p> </body> </html>