Help, html code!

ilo

Registered Member
Joined
Aug 2, 2016
Messages
75
Reaction score
11
Hello bhw, i need your help guys! I am sorry if i have write in wrong section!
I have put adsense code in a new div i have create, i need a html code which open the ads in a new window if someone click them!
Any help will be appreciated
 
The short answer is: just add a target="_blank" attribute to your links (anchor tags).
For example, if you have a link that says the following:
<a href="https://www.thesitewizard.com/">thesitewizard.com</a>
Change the above so that it now says:
<a href="https://www.thesitewizard.com/" target="_blank">thesitewizard.com</a>

Let us know if this works
 
The short answer is: just add a target="_blank" attribute to your links (anchor tags).
For example, if you have a link that says the following:
<a href="https://www.thesitewizard.com/">thesitewizard.com</a>
Change the above so that it now says:
<a href="https://www.thesitewizard.com/" target="_blank">thesitewizard.com</a>

Let us know if this works
thnx for your reply , but i am not very good at coding. The div include the adsense code and its not just a link. here is the script i use
<div class="tech">
ADS CODE HERE
</div>
<style>
div.tech {width: 336px; height: 280px; position: absolute; margin-top: 50px; margin-left: 140px; margin-right: -100px; margin-bottom: 40%; opacity: 10; z-index: 1001;
</style>
 
Back
Top