jQuery click _blank

Posted by Kenneth B on Stack Overflow See other posts from Stack Overflow or by Kenneth B
Published on 2010-04-13T12:32:28Z Indexed on 2010/04/13 12:43 UTC
Read the original article Hit count: 489

Filed under:
|
|

Hi guys

With help from you guys I now have a script that works like a charm.. The only thing I need now, is the script to open the URL in a new tab/window.

$(document).ready(function() {
    $("#onskeliste li").click(
    function()
    {
        window.location = $(this).attr("url");
        return false;
    });
    $('#onskeliste li a').click(function(e) {
        e.stopPropagation();
    });

})(jQuery);

Can you help me with this?? :-)

© Stack Overflow or respective owner

Related posts about blank

Related posts about jQuery