也许您正在寻找这样的东西?使用 jQuery 来识别您的 div 内的链接何时被单击,然后执行 javascript 操作以在其自己的窗口中打开该 div。
jsFiddle在这里
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
//alert('Document is ready');
$('#newwindow a').click(function() {
alert('helloooooo');
});
});
</script>
</head>
<body>
<div id="newwindow">
<span class="lshevent">Li - Mattek-Sands (Court 1)</span>
<div id="event153341" class="lshjpane-slider lshcontent" style="padding-top: 0px; border-top-width: medium; border-top-style: none; padding-bottom: 0px; border-bottom-width: medium; border-bottom-style: none; overflow: hidden; height: 308px;">
<table width="100%" class="insideslidebg" cellpadding="0" cellspacing="0" border="0"><tbody><tr><td colspan="2"><b>Live Streaming Video </b> <span class="section">Tennis</span>
<b>: </b> <span id="category754" class="category">Roland Garros 2013</span>
</td>
</tr></tbody></table></td>
{ SNIP! }
</tr></tbody></table></div><!-- #event153341 -->
</div><!--#newwindow-->
</body>
</html>