Skip to content Skip to sidebar Skip to footer

Javascript Banner Link Open In New Window

I have a page with a JavaScript code: http://pastehtml.com/view/1d997i8.html please view source code When you open the page a random banner will be displayed. When I click on the b

Solution 1:

< a href="somehwere" target="_blank">yay a new window< /a >

You need to set the "target" attribute in the link

Solution 2:

You could use jQuery and include the following in the script:

$('a').attr('target','_blank');

Post a Comment for "Javascript Banner Link Open In New Window"