Popup jQuery not working
-
Trying to change behavior of links (that are pulled in through an api) by adding a simple jQuery pop up function. It works in a fiddle here: https://jsfiddle.net/webbrewers2/tjwdkzj2/ but not on the live WordPress site.
Sample html:
<a class="popupclass" href="https://www.google.com">Click here</a>
Function:
$(document).ready(function($) { $('.popupclass').click(function() { var NWin = window.open($(this).prop('href'), '','scrollbars=1,height=400,width=400'); if (window.focus) { NWin.focus(); } return false; }); });
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Popup jQuery not working’ is closed to new replies.