Home > front end >  Why the reset button is invalid, and a great god answers.
Why the reset button is invalid, and a great god answers.

Time:01-29



<meta charset="utf-8" & gt;
<meta name="viewport" content="width=device - width, initial - scale=1.0" & gt;
Document
<style type="text/CSS" & gt;
H1 {
text-align: center;
}
Table {
Outline: chartreuse 5 px;
Background: lightblue;
Margin: auto;
Width: 400 px;
/* border - the collapse: the collapse; Merge border */
}
Table, tr, td {
Border: RGB (0, 0, 0, 0.5) 1 px solid;
padding:1px;
}
</style>

<script>
The function (aa)
{
Var s;
S=reg. User. The value;
Alert (" the user name is "+ s);
}
The function aa2 (t)
{
Var (p1, p2,
Alert (t);
P1=reg. Pass1. Value;
The p2=reg. Pass2. Value;
If (p1!=p2)
Alert (" two passwords don't match ")
}
</script>


<body>

Registration & lt;/strong>


























The user name & lt; Span>
Password & lt;/td>

Confirm password & lt;/td>

Gender & lt;/td>

Hobbies & lt;/td>



College & lt;/td>



  • Related