Hi all,

I’ve got a script which will enable an entire div to be clickable,
however when I click on the div it opens the URL twice.. Could someone
please help me out?

The code is:

$(".rightContent").click(function(){
                window.open($(this).find("a").attr("href")); return
false;
});

And here’s the div:

<div class="rightContent">
        <h3>Google</h3>
        <div style="margin-top: 5px;"><a href="http://
www.google.com/">http://www.google.com/</a></div>
        <div style="margin-top: 5px;">info goes here</div>
</div>

Cheers

Leanne

Reply via email to