我在java脚本中得到了这段代码,我需要在提交后提交用户名,密码和地址,或者提交为提醒
function green()
{
document.getElementById('box').style.backgroundColor = 'white';
document.getElementById('box').innerHTML = "<form name='f1' onsubmit='alert(un.value)>Enter name:<input name='un' type=text /> <br/> Enter Password: <input type=password name='ps' /> <input type='hidden' value='"+interval +"' name='in' /> <br/> <a onclick='address()'>address</a> <br/> <input type=submit value=ok /> </form>";
}
<div id="box" style="width:380px;height:400px" />
<td width="95" align="center"><a onclick="green()">green</a></td>
代码和一个帮助我...因为我在javascript中不太好