藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

請教點擊連接,同時刷新本頁的代碼!

請教點擊連接,同時刷新本頁的代碼!

[html]
<a href="#" onclick="window.location.reload()">Refresh</a>
[/html]

如果鏈接的目標對象是當前的window的話, 鏈接的目標頁就會覆蓋當前面,也用不著刷新了.
如果鏈接的目標對象是_blank(新窗口)的話,就像這樣:
[html]
<a href="http://www.blueidea.com/bbs" target=_blank onclick="location.reload()">Link</a>
[/html]

我現在已經使用了一次onclick了
<a href="#" onclick="MM_openBrWindow('bigphoto.asp?id=<%=rs("id")%>&view=<%=rs("view")%>','PhotoGarden','width=600,height=600')">[看大圖]</a>
如果加上reload 該怎麼加啊?

onclick="MM_openBrWindow('....','...','...');location.reload()"




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com