Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
10-08-2011, 02:29 PM #1
- Join Date
- Apr 2010
- Thanked 0 Times in 0 Posts
Make it open in a new tab instead of a pop up window
print "<td><a href=\"#\" onClick=\"openptc('./paidtoclick.php?adid=$row[linkid]&action=start&".session_name()."=".session_id()."','PaidtoClickPage','640','480');\"><b>Click Here To View</b></a><tr>";
This code makes the site open in a new pop up window. how to make it open in a new tab
10-08-2011, 03:47 PM #2
10-09-2011, 04:21 PM #3
- Join Date
- Jan 2011
- Thanked 630 Times in 629 Posts
@Theofilaktos Right now, there is no way YOU can open a link in a tab. This is set by the browser. All people that use tabs have things set so a new window opens the tab. Pop-ups will still open pop-ups.
BUT LOOK at bottom code = It starts with <td> and you never close this. You end the line with <tr>. I will assume you are using the wrong tag and close the <td>.
FYI an echo executes slightly faster then the print, so it's preferred.
Just use this in the html link:
echo "<td><a href=\"paidtoclick.php?adid=$row[linkid]&action=start&session_name()=".session_id()."\"><b>Click Here To View</b></a></td>";
I am curious. Why are you writing your code as php and echoing it out?
Last edited by sunfighter; 10-09-2011 at 04:23 PM.