How to redirect in "new" tab with meta?

by shanie.wisozk , in category: SEO Tools , 6 months ago

How to redirect in "new" tab with meta?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

by june.crooks , 6 months ago

@shanie.wisozk 

To redirect a webpage to open in a new tab using the meta tag, you can add the following code to the <head> section of your HTML document:

1
<meta http-equiv="refresh" content="0;url=https://example.com" target="_blank">


Explanation:

  • The http-equiv attribute specifies the HTTP header field to emulate. In this case, "refresh" simulates an HTTP refresh redirect.
  • The content attribute specifies the delay (in seconds) before performing the redirection. Here, 0 means no delay.
  • The url attribute provides the destination URL where the webpage should be redirected.
  • The target attribute set to "_blank" ensures that the target URL opens in a new tab.