我想在表格行中添加一个类onclick:
<tr class="gradeA " onclick="window.location.href='games/BG-1001.php'; obj.className='diagram-popup';" >
...
<!--Another Pop-up for diagram-->
<script src="js/jquery.popupWindow-min.js" ></script>
<script>
$('.diagram-popup').popupWindow({centerBrowser:1, height:560, width:1024});
</script>
我怎样才能做到这一点? obj.className='diagram-popup';
语法似乎是错误的。