<input type="text" name=names size=40><br> 
<input type="button" value="添加" onclick="this.insertAdjacentHTML('beforeBegin','<input type=text name=names size=40><br>')">