To create a password-protected HTML link, you can use the "mailto" link with a password parameter. Here's an example:

<a href="mailto:user@example.com?subject=Protected Link&body=Please enter password: "><button>Click to access</button></a>

In this example, when the "Click to access" button is clicked, it will open the default email client with the recipient's email address (in this case, "user@example.com"), subject line ("Protected Link"), and body text ("Please enter password: "). The user can then enter the password in the email and send it to the recipient.

Please note that this method is not secure as the password will be sent via email in plain text. It is recommended to use a secure method, such as a login form on a website, to protect sensitive information.

code html link berpassword

原文地址: http://www.cveoy.top/t/topic/ja7l 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录