|
藍森林 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()" |
|