js triggered popup
-
https://example.com/somepage/?doc=003
<a id="doc_003" class="fancybox-pdf" href="/somepage/doc003.pdf"> <script> var urlParams = new URLSearchParams(window.location.search);\n"; var param1 = urlParams.get('doc');\n"; document.getElementById('doc_' + param1).click(); </script>
the popup works fine when the link gets an actual ‘mouse-click’. just cannot figure out how to get a script-click to trigger the popup. I must be approaching this wrong?
thoughts?
-DJ
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘js triggered popup’ is closed to new replies.