I am add link in the footer “cookie policy”,But Script execute and runs only once launch the popup, I need to launch the pop everytime when i am click on the link.
<div>className="action-label" onClick={() => onCookiePolicyHandler()}>Cookie Policy</div>
onCookiePolicyHandler() {
const script = document.createElement('script');
script.setAttribute(src, xxxx);
-----Adding Mutilple attributes-----
document.head.appendChild(script);
}
the above function executes only once launch the popup, when i click on the more than once the script is not showing any popup. Could you please help me on this.