/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function popup(url) { newWindow = window.open(url, 'name', 'height=400,width=335,scrollbars=yes'); if (window.focus) { newWindow.focus() } return false; } // <a href="link.html" onclick="popup('link.html');">Link</a>