我試圖實現的是打開彈出窗口的windowopen()
函數。同時在主窗口中將用戶轉到另一個頁面。彈出窗口並點擊後重定向
<a href="http://www.google.com/" class="thumbnail"
onclick="return !window.open(this.href, 'Google', 'width=500,height=500')"
target="_blank">
Link
</a>
所以一旦用戶點擊Link
我想要的彈出式視窗加載谷歌和原來的頁面給用戶導航到.index.php
有什麼建議?
我沒有得到它100% - 你的意思是你想要一個彈出和點擊鏈接後重定向? (就像大多數色情網站?) – messerbill
@messerbill是啊,這是正確的ahaha:3 –
'!window.open(this.href,'Google','width = 500,height = 500')'是不正確的。檢查window.open的文檔! –