View Single Post
Old 06-27-2019, 04:29 PM  
incredibleworkethic
Confirmed User
 
incredibleworkethic's Avatar
 
Industry Role:
Join Date: Sep 2009
Posts: 2,302
Randomize Which JS Is Called?

I just want to thank everyone in advance for the question I'm asking, especially if you're able to help me out here.

Say I have three javascript files OR pieces of javascript I want to run. I don't care if I'm calling three files, or one with conditions.

How do I randomize it so user lands on the website, the command is executed randomly.

So

mypopup.js
advertiserpopup.js
anotheroneofmypopups.js

Is there a way to randomly call one of those?

Or perhaps use it in

allpopups.js = 3 codes, randomized per visit.

The goal is to not run both a CPM and my own popup at the same time.

Thank you!
incredibleworkethic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote