I have the following line of code -
<a href="/wordpress/wp-content/trackclicks/clickcounter.php?var=<?php echo $var3; ?>" onclick="return popitup2();">Grab Coupon</a>
But suppose i want to redirect the current page to an external link and also run the php script and the javascript function.Is something like this possible -
<a href="{@extlink}" onclick="/wordpress/wp-content/trackclicks/clickcounter.php?var=<?php echo $var3; ?>; return popitup2(); ">Grab Coupon</a>