开发者

Open popup window if href is 'www.example.com'

I want all anchor links with a certain href to open in a stripped popup window. I'm unable to add a class or an onclick event to the anchor tag so I need like jQuery to check if a开发者_Go百科 link with that certain href has been clicked, and in that case open a stripped popup window. Anyone?


check this

jQuery("a[href*=example.com]").click(function{
    // your functionality
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜