请教一个ASP表单document.location问题

来源:百度知道 编辑:UC知道 时间:2024/09/20 10:32:26
请教一下表单<form method=get onsubmit=""document.location =a.asp>中的document.location和表单中单独使用location是不是一个意思

都是javascript的知识,无论哪里调用都是一个意思。

这个表示提交出发location事件。

你那个代码有误,正确的是:
<form method=get onsubmit="javascript:document.location=a.asp">

或者写成post的方式

<form method=post action="a.asp">

不是

location 是 window.location 简写

window!=document

asp 没 document 没location的