Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder saeed's Avatar
    Join Date
    Oct 2002
    Location
    West Yorkshire
    Posts
    343
    Thanks
    32
    Thanked 0 Times in 0 Posts

    Hyperlink problem.

    I've got three links on the page.

    Code:
    <a href="http://www.cpi-pak.com.pk">Cleaner Production Institute</a>
    
    <a href="www.netherlandsembassy.org.pk">Royal Netherlands Embassy (RNE)</a>
    
    <a href="www.aptma.org.pk">All Pakistan Textile Processing Mill Association (APTPMA)</a>
    now the first link is working fine... remaining two links aren't. They are giving me this on browser window http://localhost/pisdnew/www.netherlandsembassy.org.pk

    to me hyperlink are fine, I dont know why its giving different location
    Don't click on this!

    #!/usr/bin/saeed

  • #2
    Regular Coder saeed's Avatar
    Join Date
    Oct 2002
    Location
    West Yorkshire
    Posts
    343
    Thanks
    32
    Thanked 0 Times in 0 Posts
    I got it!

    its just coz of "http://" in the beginning of the href

    but could someone define me this why its necessary.
    Don't click on this!

    #!/usr/bin/saeed

  • #3
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Because without the reference to the 'hypertext transfer protocol' the anchor tag doesn't know that you are referring to a URL properly? I think it would try to find that file on your server, rather than navigating away from your page to the URL you didn't request properly
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools


  •  

    Posting Permissions

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