2
The code below redirects to another page, but I would like it to be in another browser tab, so I used _Blank. but it does not go to another tab.
Could someone tell me where I’m going wrong? Thank you guys.
<script type="text/javascript">
$('#veranexo').click(function(){
var ass_id = $("#ass_id").val();
$(location).attr('href','<?php echo base_url() ?>/dashboard/usuarios/excluir/'+ass_id);
$(location).attr("target","_blank");
});
Immoral. Thanks a lot, man. It worked!
– Joao Torres