-1
jQuery를 사용 중이고 테이블 행을 다른 대상 프레임에 연결하려고합니다.테이블 행을 다른 프레임에 연결하는 방법은 무엇입니까?
테이블 행 :
<tr data-href="home.html" target="content"><td><h3><center>Home</h3></td></tr>
사용 :
jQuery(document).ready(function() {
$("tr").on({
click: function() {
window.location = $(this).data("href");
$(this).css("background-color","blue");
}
});
});
는 있지만, 동일한 프레임 내에서 링크를 연다.