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