Java Web基础--用户注册页面的简单实现

实现用户的注册页面,可以重置账号,并实现了按钮关闭当前页面的功能(window.close()方法)。

<html>
 <head>
<title>users signuptitle>
head>

  <body>
  <center>
  <form id = "form4" name = "form4" method = "post" action = "">
  <label>   label>
  <table width = "353" height = "140" border = "0">

  <tr>
  <td width = "104" align = "right"> username: td>
  <td width = "233",align = "left"><label for = "textfield">label>
  <input type = "text" name = "textfield" id = "textfield" />td>
  tr>

  <tr>
  <td align = "right"> password: td>
  <td align = "left"><label for = "textfield2">label>
  <input type = "password" name = "textfield2" id = "textfield2"/>td>
  tr>

  <tr>
   <td align = "right"> comfirm: td>
  <td align = "left"><label for = "textfield3">label>
  <input type = "password" name = "textfield3" id = "textfield3"/>td>
  tr>

  <tr>
  <td colspan = "2" align = "center"><lable>
  <input type = "submit" name = "Submit" value = "submit" onclick = "mysubmit()"/>
  lable>
  <lable>
  <input type = "reset" name = "Submit2" value = "reset"/>
   lable>
   <lable>
   <input type = "button" name = "Submit3" value = "close" onclick = "window.close()"/><!//windows对象调用close方法关闭页面>
   lable>
   td>
  tr>
  table>
  <lable><br/>
  lable>

  form> 
  html> 

效果如图:
Java Web基础--用户注册页面的简单实现_第1张图片

你可能感兴趣的:(JavaEE)