jQueryでリンクを別ウインドウで開く方法
例えばフッターにあるリンクを別ウィンドウで開く場合は下記のような感じ。
$(document).ready(function(){
$('#footer a').click(function(){
window.open(this.href,'');
return false;
});
});
関連記事
Category: JavaScript Tags: jQuery
4月 23, 2011 | No Comments
Comments
Leave a Reply




