CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   How to link HTML page to other HTML page in the previous folder (http://www.codingforums.com/showthread.php?t=275303)

Saber 10-05-2012 02:08 PM

How to link HTML page to other HTML page in the previous folder
 
Ok so if i put

link1.html and link2.html in a Folder5 and i put href in link1.html to lead to link2.html and from link2.html to link to link1.html it works.

But i have made link1.html to lead in a folder withing Folder5 called Folder6 where i you can find link2.html and if you click the link it will send you there.

But how to make the back connection... so that link2.html in Folder6 can lead to link1.html in Folder5 .. cuz if i put just the hreff to lead to link1.html i says that link1.html doesn't exist, because it's looking for it in Folder6... not in Folder5 that contains Folder6.

pdiddles03 10-05-2012 02:12 PM

To do this type <a href="../link1.html" />

The "../" makes it go back a folder. So if you were two folders deep into our directory and you wanted to go back to the root folder you would use "../../"

Saber 10-05-2012 02:41 PM

Thanks


All times are GMT +1. The time now is 05:32 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.