window.open和window.location
window.open是打開(kāi)新窗口。
window.location是將本頁(yè)替換了,也就是定位。
例如:
<input type="button" value="轉(zhuǎn)向" onclick="window.open('default.htm')">
<input type="button" value="轉(zhuǎn)向" onclick="window.location='default.htm';">
posted on 2007-04-12 12:07 A++ 閱讀(1045) 評(píng)論(1) 編輯 收藏