1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How To Open A New Tab When someone Clicks on my page.

Discussion in 'JavaScript' started by Preetam960, Mar 14, 2015.

  1. #1
    Right now I am using popads and propeller ads .
    But I want to stop using them as i want to show my second website as an advertise on my first website.
    What is want is a simple javascript code that can open "example.com" in a new window when someone clicks on my page.
    Can anyone help me ?
     
    Preetam960, Mar 14, 2015 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Is there some reason you want to completely piss off visitors to your page so they won't even visit, or load a script-blocker before they do so?
     
    deathshadow, Mar 14, 2015 IP
  3. billzo

    billzo Well-Known Member

    Messages:
    961
    Likes Received:
    278
    Best Answers:
    15
    Trophy Points:
    113
    #3
    There are a number of pop-under javascript examples you can find. Use one that sets a cookie so the pop happens only once.

    Pop-unders are annoying. But as far as online revenue goes, they are helpful. Pop-unders are much more effective than banner ads.
     
    billzo, Mar 14, 2015 IP
  4. CYCchips

    CYCchips Active Member

    Messages:
    267
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    88
    #4
    you can use subdomain redirection code ..mmmmm.may be its works,,ask your hosting to get one some hosting help with that..
     
    CYCchips, Mar 14, 2015 IP