Posted By

k1ddo on 02/12/09


Tagged

javascript jQueryscriptpopup


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

benrudolph
bryandease


jQuery Pop-Up window function


 / Published in: JavaScript
 

  1. $(document).ready(function(){
  2. $('.classname').bind('click',function(e){popwindow(e)});
  3. });
  4. function popwindow(e){
  5. e.preventDefault();
  6. var href=$(e.target).attr('href');
  7. window.open(href,'','menubar=1,location=1,toolbar=1,width=1024,height=768');
  8. };

Report this snippet  

You need to login to post a comment.