Html 如何让页面在插入正确密码后做出反应?
我在我的电脑上做了一个登录页面,但我不知道如何让它在登录后做出反应。我试图建立一个网站,人们可以互相发送消息。 我输入了以下内容:Html 如何让页面在插入正确密码后做出反应?,html,reactjs,passwords,Html,Reactjs,Passwords,我在我的电脑上做了一个登录页面,但我不知道如何让它在登录后做出反应。我试图建立一个网站,人们可以互相发送消息。 我输入了以下内容: <html> <!-- Button to open the modal login form --> <button onclick="document.getElementById('id01').style.display='block'">Login</button> <!-- The
<html>
<!-- Button to open the modal login form -->
<button onclick="document.getElementById('id01').style.display='block'">Login</button>
<!-- The Modal -->
<div id="id01" class="modal">
<span onclick="document.getElementById('id01').style.display='none'"
class="close" title="Close Modal">×</span>
<!-- Modal Content -->
<form class="modal-content animate" action="/action_page.php">
<div class="imgcontainer">
<img src="https://clipground.com/images/img_avatar2-png-2.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<label for="friends"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="friends" required>
</div>
<label for="keep secrets"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="keep secrets" required>
<div class="container">
<button type="submit">Login</button>
<label>
<input type="checkbox" checked="checked" name="remember"> Remember me
</label>
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
<span class="keep secrets">Forgot <a href="#">password?</a></span>
</div>
</form>
</div>
</html>
登录
&时代;
用户名
密码
登录
记得我吗
取消
忘记
这种类型的应用程序,比单个页面复杂得多,我建议您在youtube上搜索一些教程
这是一个很好的链接