Reputation: 137
How can i access 2.html from 1.html? When i click on a link given in 1.html. and both the directories are in same directory.
Upvotes: 1
Views: 68
Reputation: 10506
if dir1 and dir2 are in the same parent directory then this is how you access 2.html from 1.html:
<a href="../dir2/2.html">link to 2.html</a>
hope it helped :)
Upvotes: 0
Reputation: 3239
Something like this should work (place in 1.html):
<a href="../dir2/2.html">Click me</a>
Upvotes: 2