Ive created links that open in a new window (not tab) with inline javascript:
onclick="window.open(this.href, 'newwindow', 'width=370, height=280'); return false;"
Now I want to move this javascript to a reusable class. Why is the following not working?
$(document).ready(function() {
$('.open-new-window').click(function(){
return false;
window.open(this.href, 'newwindow', 'width=500, height=150');
});
});