Is there a way in jquery to my browser is not moved by clicking on a link to the new window, so I just stayed in the open window.
Just as it is on the page:
http://www.netvouchercodes.co.uk/expiring-voucher-codes
when you click the Get code & visit, we are on the home page and a window opens in the background.
How do you modify my code to make it work:
Html:
Click here
Jquery:
$('a.yourLink').click(function(event) {
$(this).next('.hiddenDiv').show();
window.open(this.href, '_blank');
$(this).remove();
return false;
});
CSS
.hiddenDiv{
display:none;
}
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)