JavaScript Popup Unobstrusive


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function popup(url) {
  2. newWindow = window.open(url, 'name', 'height=400,width=335,scrollbars=yes');
  3. if (window.focus) { newWindow.focus() }
  4. return false;
  5. }
  6.  
  7.  
  8.  
  9. // <a href="link.html" onclick="popup('link.html');">Link</a>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.