So I was wondering how I can code a button to open 2 url's. I have seen retailmenot.com do it when clicking on the button "Get Deal". It opens a new tab with the their article inside their own website but on the original tab it's open a link to the deal site. eg. click on "Get Deal" here http://www.retailmenot.com/view/bestbuy.com
So my code I have done is
<!-- Author -->
<span class="mix-author"></span>
<a attr="<?php echo $item->author_email; ?>" href="<?php echo $website_url; ?>" target="_blank" style="background-color: grey;padding: 5px 7px;border-bottom: 4px ;border-radius: 4px;float: right;color: white;" >GET DEAL</a>
<?php } ?>
The above code opens in a new tab. but I want it to open in the current tab while I want the code(link) below to open in the new tab without showing me the title when the above "GET DEAL" is clicked.
<?php if ($params->get('show_title')) { ?>
<!-- Title -->
<h3>
<a href="<?php echo $item->link; ?>" class="mix-title"><?php echo $item->main_title; ?></a>
</h3>
<?php } ?>
Please help me out.