Results 1 to 4 of 4

Thread: A basic question about HTML

  1. #1
    Guest
    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.

  2. #2
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126
    Check out...

    http://members.dingoblue.net.au/~pri...nkstealer.html

    If you want I can send you *parts* of the source code.
    Regards,

    Paul Rivoli
    ---------------------
    [email protected]
    http://members.dingoblue.net.au/~privoli

  3. #3
    Guest
    ../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

  4. #4
    Guest
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width