1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help, html code!

Discussion in 'Blogging' started by ilo, Jan 10, 2017.

Tags:
  1. ilo

    ilo Newbie

    Joined:
    Aug 2, 2016
    Messages:
    43
    Likes Received:
    5
    Gender:
    Male
    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
     
  2. SEOStudent15

    SEOStudent15 Newbie

    Joined:
    Dec 16, 2015
    Messages:
    28
    Likes Received:
    8
    Occupation:
    Student
    Location:
    Atlanta, GA
    Home Page:
    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
     
  3. ilo

    ilo Newbie

    Joined:
    Aug 2, 2016
    Messages:
    43
    Likes Received:
    5
    Gender:
    Male
    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>
     
  4. kirila007

    kirila007 Newbie

    Joined:
    Nov 8, 2013
    Messages:
    39
    Likes Received:
    22
    https://support.google.com/adsense/answer/1354740?hl=en It seems that google doesn't allow that. If it was a simple anchor you could have done what the guy above has suggested.
     
  5. ilo

    ilo Newbie

    Joined:
    Aug 2, 2016
    Messages:
    43
    Likes Received:
    5
    Gender:
    Male
    i see thnx guys!