Submit Your Article Forum Rules

Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How to open it in a new window

  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    76

    How to open it in a new window

    I have a site iExpat.cn - iExpat.cn is for Shanghai Expat , and added several google adsense blocks on my site. Here I have a question, how can it open a new window when people click on the adsense link?

    Thanks.

    (sorry, this should be in the subforum)

  2. #2
    Senior Member
    Join Date
    Apr 2007
    Posts
    271

    Re: How to open it in a new window

    Is your site so bad, that you are afraid they won't come back to your site?

    I exit sites thats make me open new windows ....very annoying

  3. #3
    Senior Member
    Join Date
    Oct 2007
    Posts
    146

    Re: How to open it in a new window

    Not possible

  4. #4

    Re: How to open it in a new window

    You can do it although it won't be pretty.

    1. Make sure the iFrame(s) used to hold the ads are fully loaded.
    2. Iterate through the iFrames on the page looking for the Adsense iFrame(s).
    3. Iterate through the links in each Adsense iFrame and add/change the target="_blank" attribute/value to each one.

    Currently the ad links are set to target=_top which means that it should break out of the iFrame and load in the main window but when you set target="_blank", that should be overwritten and cause the ad to be loaded in entirely new window.

    At least in theory that should work.

    Also, I don't think it would violate Adsense Terms of Service but I'm not sure and you would definitely want to verify for yourself before trying something like this.

  5. #5
    Senior Member
    Join Date
    Nov 2003
    Posts
    398

    Re: How to open it in a new window

    Do not change the Google code to open the link in a new window. That is definitely against their rules (when all else fails, read the instructions.......etc.) and they can drop you from the program.

    In addition to reading this in their rules I actually asked them about it and was told definitely NO.

    Good luck.

  6. #6
    WebProWorld MVP mjtaylor's Avatar
    Join Date
    Dec 2003
    Posts
    6,237

    Re: How to open it in a new window

    Quote Originally Posted by alexcl View Post

    (sorry, this should be in the subforum)
    No worries, I moved it. Cheers, MJ
    SEO Friendly Premium Web Directory - Submit Now| Need to write a love letter to Google? I'm an SEO Copywriter who knows Search Smart DesignŽ. | Travel Gypsy in Key West.

  7. #7
    WebProWorld MVP DaveSawers's Avatar
    Join Date
    Dec 2006
    Location
    Lunenburg, Nova Scotia, Canada
    Posts
    763

    Re: How to open it in a new window

    Opening links in new browser windows is also against W3C standards, not that Google care much for such things.
    Dynamic Software Development
    www.activeminds.ca

  8. #8
    Senior Member craigmn3's Avatar
    Join Date
    Jan 2004
    Posts
    476

    Re: How to open it in a new window

    Why would you put outgoing links on your site, if you are trying to keep people on your site?

  9. #9
    WebProWorld MVP mjtaylor's Avatar
    Join Date
    Dec 2003
    Posts
    6,237

    Re: How to open it in a new window

    Quote Originally Posted by craigmn3 View Post
    Why would you put outgoing links on your site, if you are trying to keep people on your site?
    To make money when they *do* leave ...
    SEO Friendly Premium Web Directory - Submit Now| Need to write a love letter to Google? I'm an SEO Copywriter who knows Search Smart DesignŽ. | Travel Gypsy in Key West.

  10. #10

    Re: How to open it in a new window

    I use PHPAdsNew to manage all ads including Google adsense on all my sites. It is simple to make the ads open in new windows but it is against Google adsense rules as someone already said.

Page 1 of 2 12 LastLast

Similar Threads

  1. robots.txt an open window?
    By simonm in forum Internet Security Discussion Forum
    Replies: 21
    Last Post: 11-06-2009, 10:26 PM
  2. Can Flash files open up in own window
    By Photoartomation in forum Graphics & Design Discussion Forum
    Replies: 6
    Last Post: 09-17-2009, 10:55 AM
  3. How to open a link in a new window while being valid html
    By nseidm1 in forum Graphics & Design Discussion Forum
    Replies: 3
    Last Post: 01-16-2007, 09:19 PM
  4. Discussion: Avoid forcing links to open in a new window
    By Webnauts in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 01-20-2005, 02:37 AM
  5. Links to open in a new window ?
    By malcolm in forum Google AdWords/Google AdSense
    Replies: 14
    Last Post: 12-12-2003, 01:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •