I want to open all banner ads on new window, or from class, example: classs .bannerad
open this in new window,
I have this code but this open my page in new window not the ads, i want to open the ads in new window not my page.
<script>
$(document).ready(function(){
var link = location.href;
$(".bannerad").click(function(){
window.open(link);
});
});
</script>
before I asked this question I tried all the codes from these posts
so i have see more then 10 post but do not help me.
My question now is... Exist any code javascript or jQuery to force all external links and banner ads to open in the new window? Thanks.