I have a problem with my HTML + jQuery code.
I want to set my table row as link to something, but I don't know how to add target="_blank" attribute to this. Anyone can help me fix this?
HTML
<tr class='clickableRow' data-url="http://tbc.designcrown.co.uk/go/siteground">
<td>Sample</td>
</tr>
jQuery
jQuery(document).ready(function($) {
$(".clickableRow").click(function() {
window.document.location = $(this).data('url');
});
});