-
I am trying to figure out all the ways a hyperlink can be created in HTML. Right now I am working on a program that parses HTML into a list of links, I find the links by searching for instances of href=". It all works but I want to automate instances of links that don't have their full domain and prefix. I am a bit lost as to how browsers translate a link that starts with a ../path/filename. If anyone could explain this to me, I would be very grateful.
-
Check out...
http://members.dingoblue.net.au/~pri...nkstealer.html
If you want I can send you *parts* of the source code.
-
../path/file links are relative.
If you currently are in, http://www.microsoft.com/stuff/morestuff/index.html
then ../path/file will link to
http://www.microsoft.com/stuff/morestuff/../path/file
witch in turn is
http://www.microsoft.com/stuff/path/file
[.] stands for this dir
[..] is one dir up
-
Thanks Azzmoda that is just what I was looking for, can there be more than two periods? The program is much like the example that privoli has, but I already got all the same functions to work.