I have a form with action e.g. register.php
I also have a Google group API link -
https://groups.google.com/group/GROUPNAME/boxsubscribe?p=ConfirmExplanation&email=EMAIL_ID&_referer&hl=en
in short... Is there any PHP function for open page in new tab; on page load...
You can make a HTML link open in a new tab by adding the target=”_blank” attribute. You should insert this after the link address.
Answer: Use the PHP header() Function You can simply use the PHP header() function to redirect a user to a different page. The PHP code in the following example will redirect the user from the page in which it is placed to the URL http://www.example.com/another-page.php . You can also specify relative URLs.
To open a link in a new tab, click the link by pressing down your middle mouse button, or right-click the link and select Open link in New Tab. If your mouse has a wheel, it can be used as a button if you press down on the wheel. These methods work in all of the major Internet browsers available for Microsoft Windows.
Yes, either change the browser preferences or use whatever key and click combination is required for that browser to open the link in a new tab but keep focus on the current on.
Use the target
attribute on your anchor
tag with the _blank
value.
Example:
<a href="http://google.com" target="_blank">Click Me!</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With