hey everyone,
i just joined the cpalead network, but I have a question regarding using the content locker.
So I made a content locker using their content locker creator, and they gave me a Javascript Code code to insert it inside the <head> tag and a onclick code to insert it inside a button. I pasted the javascript code into the <head> tag with no problem, but I do not know how should I use that onclick code.
This is their (cpalead) instruction of using the onlick code:
If you've selected OnClick option, use the following example to launch your Content Locker on a click event (i.e. a link or button).
So I think I need to add the onclick code to the button that I want to open the content locker.
This is my button: <button type="button" id="VER" class="S2B4 VB btn btn-block btn-lg btn-light mt-2" onclick="call_locker();"><strong>download</strong></button>
this is the onclick code that they (cpalead) gave me: <a onclick="run_locker();">Run Locker</a>
how should I add that onclick code to my button?
i just joined the cpalead network, but I have a question regarding using the content locker.
So I made a content locker using their content locker creator, and they gave me a Javascript Code code to insert it inside the <head> tag and a onclick code to insert it inside a button. I pasted the javascript code into the <head> tag with no problem, but I do not know how should I use that onclick code.
This is their (cpalead) instruction of using the onlick code:
If you've selected OnClick option, use the following example to launch your Content Locker on a click event (i.e. a link or button).
So I think I need to add the onclick code to the button that I want to open the content locker.
This is my button: <button type="button" id="VER" class="S2B4 VB btn btn-block btn-lg btn-light mt-2" onclick="call_locker();"><strong>download</strong></button>
this is the onclick code that they (cpalead) gave me: <a onclick="run_locker();">Run Locker</a>
how should I add that onclick code to my button?