Switch to the dark side!
General Discussion

General Discussion

Latest Discussion
2 months ago
3 months ago
4 months ago
More...

Post a new topic



html help

2047
Dextro says:

i'm trying to link a webpage to a file in the directory above it. source:
<a href="main.html">Main[/a]
However, the main file is not in the same directory. It's in [final], and the page i'm working on is in [final->teachers] how do you code it to go up without using the entire file path?

06:44 pm, Tuesday, April 30, 2002 (7 years ago)
2047
Dextro says:

anybody?

08:33 pm (7 years ago)
51
lamplighter says:

I think is what you are trying to do? That will refer to the file one directory up. You can also do ../../etc.

small chops fell great trees

08:36 pm (7 years ago)
51
lamplighter says:

That should be:
I think a href="../file.htm" is what you are trying to do.

small chops fell great trees

08:37 pm (7 years ago)
2047
Dextro says:

no, i'm not trying to go into a directory, i'm trying to get out of one. i know if you go it goes into the classes folder and opens ib.html but how do you go up without typing in the entire file path

08:41 pm (7 years ago)
2047
Dextro says:

go to http://www.geocities.com/cpuman350/index.html and go to teachers or classes and click on a teacher or class. then go to the bottom and click math home. that's my problem. i can't get it to go back up the directory

08:47 pm (7 years ago)
377
miriku says:

".." usually means "up to parent directory"

:: http://liquidspin.com ] [ yes i'm an admin ::

08:50 pm (7 years ago)
Avatar-50x50

Just type the whole thing. The extra two bits it adds to the html file won't make a difference at all. And the earlier posts are correct. If "above.html" is the in the directory above "below.html" and you're trying to link to above.html from below.html, you would say {a href="../above.html"}

09:32 pm (7 years ago)
 
   Arrow_up_small Top

Reply to this topic

You must register and become a member to post a reply.