Hi,
below is the HTML table. There are 2 columns first is a URL and second one is CheckedBox. I need if the checkbox is checked URL opens in new window and if the checkbox is not checked it opens in the same window. This table will fille dynamically . and i want to do it through JavaScript.
[code]
<table id=”myTB”>
<tr>
<td class=”ms-vb”><a href=”http://google.com” onclick=”validatechk();”>Testing Google Site</a></td>
<td class=”ms-vb”><input type=”checkbox”></td>
</tr>
<tr>
<td class=”ms-vb”><a href=”http://msn.com” onclick=”validatechk();”>msn</a></td>
<td class=”ms-vb”><input type=”checkbox”></td>
</tr>
<tr class=”ms-alternating”>
<td class=”ms-vb”><a href=”http://asiem.com/blog” onclick=”validatechk();”>asimsse blog</a></td>
<td class=”ms-vb”><input type=”checkbox” ></td>
</tr>
</table>