HTML Re-Direct Question

by 5 replies
6
Hey guys,

For a re-direct, I've been using a file that someone gave me to use. Basically I create a "Recommends" folder and then create another folder with whatever I'm recommending and place this file in as the index.html.

For example, mysite.com/Recommends/BlueWidgets

However, I've noticed that although the re-direct works fine, it re-directs in the same window.

I would like for it to open in a new tab whenever someone clicks on one of the links.

I know it's something simple but I thought I'd ask here instead of trying to figure it out myself.

Here is the html I'm using.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<meta http-equiv="Refresh"
content="1; URL=DESTINATION URL HERE" />
<title>DESTINATION TITLE HERE</title>
</head>
<body>
<br />
</body>
</html>

So basically I want that the links to open in a new tab.

I would be very grateful for your help.

Thanks in advance!
#website design #html #question #redirect
  • Try this :

    -----
    -----
    <meta http-equiv="Refresh"
    content="1; URL=DESTINATION URL HERE" target="_blank">
    -----
    -----
    • [1] reply
    • Perfect!

      Thanks for that.
      • [1] reply

Next Topics on Trending Feed

  • 6

    Hey guys, For a re-direct, I've been using a file that someone gave me to use. Basically I create a "Recommends" folder and then create another folder with whatever I'm recommending and place this file in as the index.html.