I have defined a function in which i want to open a page on a new window. The function has following code:
echo"<script>window.location.href='http://localhost/paymentsystem/views/payment.php?id=".$id."'</script>" ;
Right now its opening the page on the same window.
I want to know how can i open this page on a new tab?
Regards,
Pankaj
Try:
instead of window.location.href