Code:
<! DOCTYPE html>#main {width:300px; height:180px; Background-color: #bebdbd; Position:absolute; Left:60g; Top:30%; Display:none; Border:thick solid black; }. a span{color:white; } div input{width:260px; }. A a{list-Style:none; Color:green; } </style> <script>functiondisplaydate () {document.getElementById ("Main"). Style.display= "Block"; } functionhid1 () {document.getElementById ("Name1"). Value= ""; } functionHid2 () {document.getElementById ("Name2"). Value= ""; } functionCheckName () {varName = document.getElementById (' name1 '). Value; if(name<=0) {alert (' Email cannot be empty '); } Else{ varStremail = document.getElementById (' name1 ')); varEmailreg =/^[\w-]+ (\.[ \w-]+) *@[\w-]+ (\.[ \w-]+) +$/; if( !emailreg.test (Stremail.value)) {Alert (' Email input is wrong, please re-enter ') return false; } } } functionCheckpass () {varpass = document.getElementById (' name2 '). Value; varRe3 =/\w{8,}/; if(pass<=0) {alert ("Password cannot be empty"); } Else if( !Re3.test (pass)) {Alert (' Password number is less than eight bit, please re-enter! ‘); } } functioncancle () {document.getElementById (' main '). style.display= "None"; } </script>"Review" is to implement a popup login box and verify the input values