|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
網頁中的鏈接問題
網頁中的鏈接問題
能不能讓網頁中的某一鏈接鏈接後該網頁自動關閉? |
文字鏈接
<a href="javascript:window.close();">關閉窗口</a>
按鈕鏈接
<input name="button" type=button onClick="javascript:self.close();" value="Close Window"> |
yuanxm在上個帖子中說
好像你理解錯了呀!我是說打開這個鏈接後有另一個網頁而原來的那個網頁就自動關閉! |
那為什麼不用target=_self
不是很明白~~~~~~~~ |
|