Any privy experts in creating custom javascript audience targeting.

22 0 1

Hi , this is my website
i launched a popup campaign called redirection campaign to drive the users to the relevant website like Global and Local. So i need to show this popup immediately as they enter to the website and if they closed the popup, within few seconds it should popup again, like that it should go on a loop. And once they clicked the buttons which shows LK or Global, the popup should stop showing. So please give me solution for this problem.