用method=post时,即可隐藏传递参数.注意一下是否你在提交函数中又将method置为了get,如下:<script language="JavaScript">
function submitform()
{
document.search.method = "get";
document.search.submit();
}
</script>
<form method="post" target="_blank">
<input type="text" name="txt" value="hello">
<input type="button" name="btn" value="submit" onclick="submitform()">
</form>form的属性post在脚本中被改为了get,参数传递被显示于url中