我正在使用 Wordpress,并且在帖子中有一个简单的 HTML 表格。我使用 javascript 使所有行都可点击到 URL。某些客户端使用 Internet Explorer 报告错误,“此内容无法在框架中显示”。我需要两件事:
- 在新选项卡中打开的链接(当前在同一窗口中打开)
- 要删除此错误(即使下面的内容也给出了错误)。
有任何想法吗?提前致谢
<table class="mytable">
<tbody>
<tr>
<th>Title</th>
<th>Author</th>
<th>Publisher</th>
<th>ISBN</th>
</tr>
<tr onclick="document.location = 'http://amazon.com/dp/1234567890';">
<td><strong><em>Book A</em></strong></td>
<td>rrr</td>
<td>hhh</td>
<td>123414</td>
</tr>
<tr class="alt" onclick="document.location = 'http://amazon.com/s?index=books&field-author=fred';">
<td><strong><em>Book B</em></strong></td>
<td>VVV</td>
<td>AAA</td>
<td>n/a</td>
</tr>
</tbody>
</table>