Onclick Actions advice with Ninja pop-ups, please help

inmygarage

Newbie
Joined
Jan 2, 2017
Messages
33
Reaction score
1
Hey there.

I have a button on my site, where if clicked, the user is taken to a new window with new url, and the previous tab redirects to another page (the cpa offer) :)

I am using the following code on a button on my site and it works.

<a class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-rounded vc_btn3-style-modern vc_btn3-color-grey" href="http://google.com" title="doesnotmatter" target="_blank" onclick="window.location = &quot;https://www.example.com&quot;">Text on the button</a>

I want to attach the same code to an image but I can't figure out how??

Can anyone please help a newbie?

thanks a mil! really really appreciated.


btw I'm using Ninja pop ups - which is where I will put the html code.
 
okay never mind - I figured it out.

for reference I think this is one of the best ways to hunt cookies x)

this worked:

<a target="_blank" onclick="window.location = &quot;https://www.example.com&quot;" href="https://www.google.com/"><img src="https://yoursite.com/wp-content/uploads/blabla.png" /></a>
 
What do you mean by hunt cookies ? How you hunt from 1 image inside a tags ?
 
What do you mean by hunt cookies ? How you hunt from 1 image inside a tags ?
Because my pop-up is a notification that says "We use cookies". looks innocent, and when you click the X to remove it, you are taken to my cpa offer, as described in the code :)
 
Because my pop-up is a notification that says "We use cookies". looks innocent, and when you click the X to remove it, you are taken to my cpa offer, as described in the code :)

Thats pretty smart way to encourage visitor to click :) But since its unwanted window, your cpa offer should be soo general that everybody should like.
 
or you use ppc search ads to increase the odds ;)
 
Thread moved.
 
Back
Top