views:

34

answers:

2

I am trying to load a web page in a new window on class="link" Below is what I have but it does not seem to work in IE 7-8

    $('.clicky').mousedown(function(){
        window.open("http://google.com");
    });​

Here is the complete context http://jsfiddle.net/Zw5c2/14/

Foolish me it was my pop up blocker. But I modified the script to open in the same window

        $('.link').mousedown(function() {
            window.location="http://google.com";
        });​
+1  A: 

Your browser is probably blocking popups. You can try to use the .click() event instead or add a "normal" anchor tag with the url as href.

David
A: 

Works in IE6/7/8 for me, ran then on virtual boxes.

I believe your popups are indeed disabled.

check your settings if the browser doens't ask to allow popups.

Nealv