Onclick event not working
-
Hello, i had setup a simple message (with no button) with a link:
<a href="#" onclick="if(window.__lxG__consent__!==undefined&&window.__lxG__consent__.getState()!==null){window.__lxG__consent__.showConsent()} else {alert('This function only for users from European Economic Area (EEA)')}; return false">Change privacy settings</a>
but it doesn’t work, i looked at source code and the HTML is rendered without onclick so only the link to #.
Is this a bug?
Another question: if i would use the button to show, how can i implement the link above?
Thanks in advice.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Onclick event not working’ is closed to new replies.