console
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<style>
.injected-text {
margin-bottom: 30px;
text-align: center;
color:orange;
}
.box {
border-style: solid;
border-color: black;
border-width: 5px;
text-align: center;
}
.gray-box {
background-color: gray;
padding: 10px 10px 10px 10px;
margin: 20px 400px 20px 400px;
}
}
</style>
<body>
<div class="box gray-box">
<h5 class="injected-text">明文:<form action="#"><input type="text" placeholder="琛宝憨憨"></form></h5>
<h6 class="injected-text">密钥:<form action="#"><input type="text" placeholder="琛宝憨憨"></form></h6>
<br/>
<button type="submit" onclick="myFunction()">Submit</button>
<p id="demo"></p>
<script>
function myFunction(){
var x;
var person=prompt("后端算法;(输入密文)","Happy chenchen");
if (person!=null && person!=""){
x="你的密文是 " + person;
document.getElementById("demo").innerHTML=x;
}
}
</script>
</div>
<a href="/ty2Kp.html">
<button>back</button>
</a>
</body>
</html>