open in a popupwindow
-
Hi,
I am able to open in a new tab, with target=_blank.
But I would like to open the link into a popup window.
I put a class to my case 1 in the wp-print.php: class=”popup”
with a jquery script in the header of my theme<script>
$(‘.popup’).click(function (event) {
event.preventDefault();
window.open($(this).attr(“href”), “popupWindow”, “width=600,height=600,scrollbars=yes”);
});
</script>Unfortunately, it doesn’t work.
Any idea?
Thanks in advance.
Made
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘open in a popupwindow’ is closed to new replies.