How to open a popup window with jquery

Generally popups are considered bad'ish, but sometimes they come handy, e.g. opening an audio player.


$(function() {

    $('a.popper').click(function() {
        var href = $(this).attr('href');
        window.open(href, 'popup', 'height=500,width=400,toolbar=no');
        return false;
    });
});

Source

Club-Mate, the beverage → club-mate.fi