-3

I have a popunder advert, and would like for it to be opened when the page is clicked a second time, not the first time. Is this possible?

The popunder:

<script type="text/javascript">
var uid = '35190';
var wid = '65325';
</script>
<script type="text/javascript" src="http://cdn.popcash.net/pop.js"></script>

Thanks

zigg75483
  • 45
  • 6
  • just out of curiosity, What is that code you've given us..... how exactly does a link to a script and 2 javascript variables help the question ? – Billy Feb 02 '15 at 08:48
  • I don't want it to open on double click, I want it to open on the second click of the page and the second click will be about 10 seconds after the first click – zigg75483 Feb 02 '15 at 08:52
  • Please only constructive and useful answers only Billy, thanks – zigg75483 Feb 02 '15 at 08:53
  • @zigg75483 Billy is being constructive; they're asking for useful information, of which you have given us none. – Daedalus Feb 02 '15 at 09:13

1 Answers1

0

if you want to use an anchor tag,use a ondblClick event for your anchor tag.And set the href attribute to #

<a href='#'  ondblClick='getLink();'>click</a>

getLink function will run a window.location.assign() function which accepts a link to your desired page

 function getLink(e){
           window.location.assign('https://www.google.com.bd/?gws_rd=cr,ssl&ei=vjzPVNDOKujEmwXPtoLIAw');
       }
AL-zami
  • 8,902
  • 15
  • 71
  • 130