DisclaimerThis is an advanced setting that should only be used by people with some programming knowledge.
When the Pop-Up code is inserted into a website, there is a way to activate it from a custom button.
This method can be called from the custom button (or other elements) on click event or it can be attached via an element event listener.
Example 1
In this example, referrizerWidget.showWidget() method has been attached to the simple button via the inline onclick attribute. When the user clicks on the button, the Pop-Up will appear. This event can be also added to other elements, e.g. 'anchor' or 'div'.
Button example:
<button type="button" onclick="referrizerWidget.showWidget()">Show Referrizer Widget</button>
Anchor example:
<a href=”javascript:;” onclick="referrizerWidget.showWidget()">Show Referrizer Widget</a>
Div example:
<div onclick="referrizerWidget.showWidget()">Show Referrizer Widget</div>
Example 2 (Advanced)
In this example, referrizerWidget.showWidget() method has been called from the script block via addEventListiner which will listen for the user click and respond with the Pop-Up activation.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article