Click to See Complete Forum and Search --> : [RESOLVED] href without protocol


chida
03-03-2008, 09:29 AM
Is there a way by which i can do a href without specifying the protocol.

Say the below mentioned link

<a href="www.yahoo.com">Yahoo</a>

should point to www.yahoo.com rather searching for the page in the relative directory.

Kor
03-03-2008, 09:41 AM
Well, yes, you may use the BASE tag, but take care; in this case you will be not able use relative addresses in your page, as all you links in the document will start now with the base's href:

<base href="http://">

BASE is to pe placed inside the HEAD of the document.

chida
03-03-2008, 09:47 AM
Thanks Mate. That was really fast.