源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <form action="demo_keygen.php" method="get"> 姓名: <input type="text" name="usr_name"> Encryption: <keygen name="security"> <input type="submit"> </form> <p><strong>注意:</strong> IE 不支持 keygen 标签</p> </body> </html>
运行结果