2010-07-11 112 views
-1

當我點擊button1時,它應該在新窗口中打開Internet Explorer中的URL。如何在Internet Explorer的新窗口中打開網址

+3

我想建議不要這樣做:)我不喜歡當網站認爲他們知道如何管理我的窗口比我更好。 – sarnold 2010-07-11 10:55:01

+0

dnt擔心我會提供2個鏈接,1在同一窗口和新窗口中打開。 – subanki 2010-07-11 11:03:14

回答

1
<input type="Button" value="Click me!" onclick='window.open("mypage.html", "refname", "resizable=yes,scrollbars=yes,status=yes");' /> 
+0

thanx frnd(我忘了說thanx,srry) – subanki 2010-07-13 10:28:33

3
<a href="my_uri" target="_blank"> 

雖然這並不能保證一個新的窗口,一些瀏覽器希望在新標籤頁中打開它來代替。

相關問題