在我提交表单并返回页面后,提交的字段显示不需要的文本“未定义”:
如何丢失文本“未定义”?我绝对没有做任何事情让它出现。这是 HTML:
<span class="small60">Nummer:
<input onkeypress="javascript:searchWithEnter('Oversikt','fastsearch')"
title="<%=mouseOverFast %>" type="text" size="40" name="fastsearch">
剧本:
function searchWithEnter(action, command) {
if (window.event && window.event.keyCode == 13) {
document.actionForm.action.value = 'Oversikt';
document.actionForm.actionCommand.value = 'fastsearch';
document.actionForm.submit();
disableAll();
}
}