View Full Version : Hyperlink problem.

01-08-2008, 09:59 AM
I've got three links on the page.

<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 :confused:

01-08-2008, 10:02 AM
I got it!

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

but could someone define me this why its necessary.

01-08-2008, 10:14 AM
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