- OpenX Community Forums

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Window.opener Javascript Property For Ads
HannahOpenX
post Nov 7 2011, 12:46 PM
Post #1


Beginner
*

Group: Members
Posts: 1
Joined: 7-November 11
Member No.: 170,673



Hello,

I have a link on a web page. The user is to click the link and a pop-up window appears. In this pop-up window there is going to be an OpenX advert zone.

I would like users to click on this OpenX advert and for the url to open in the window behind the pop-up (the original page that they came from). This means that the pop-up is still visible, but they can see the url from the advert behind it.

I managed to do accomplish this using a simple image and a tag in place of where the advert will be using the window.opener javascript property:

java script:
function UrlOpenerWindow(myURL){
window.opener.location=myURL;
}

HTML:
<a href="java script:UrlOpenerWindow('/the_url/')"><img src="the_image.png" width="180" height="150" /></a>


HOWEVER when I replace the image and a tag with the OpenX invocation code for the ad zone, the url opens in a new tab and the pop-up disappears behind the original window.

I would really appreciate if someone could help me out with this one! It seems as though I cannot override the target property that is set in OpenX.


Thank you,
Hannah
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

Locations of visitors to this page