Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there any PHP function for open page in new tab

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...

like image 561
suiz Avatar asked Oct 09 '12 08:10

suiz


People also ask

How do you make a code open in a new tab?

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.

How do you make PHP open another page?

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.

How do I make a link open in a new tab instead of a new window?

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.

Is it possible to open a new tab but stay on the current tab?

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.


1 Answers

Use the target attribute on your anchor tag with the _blank value.

Example:

<a href="http://google.com" target="_blank">Click Me!</a>
like image 179
Terry Harvey Avatar answered Oct 25 '22 00:10

Terry Harvey