2012-01-19 2 views

답변

0

당신은 jQuery를 함께 간단한 DOM 또는 사용할 수 있습니다

$("tr").click(function() { 
    window.location = 'your_location'; 
}); 
2
<tr onclick="window.location = 'http://ubuntu.com'"> 
    <td>some text</td> 
</tr> 
0

또는 직선 JS에서를!

var tr = document.getElementById('tr-id'); 
tr.onclick = function (e) { 
    location.href = 'http://www.google.com'; 
}; 
관련 문제