<input type="button" value="open a new window" onClick="window.open('add.htm')">
<input type="button" value="link to a new page" onClick="window.location.href='add.htm'">
<input type="button" value="link to a new page" onClick="window.location.href='add.htm'">
我记得VBSCRIPT 的方法是window.location.replace
主要是页面A-》B时B是个过去的页面刷新后才变成新的内容
if(....)
{
....
location.href="url";
}
else
{
location.href="url"
}