Posted By

humanoid on 03/08/10


Tagged

popup


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

fackz


JavaScript Popup Unobstrusive


 / Published in: JavaScript
 

  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  

You need to login to post a comment.