Welcome Guest, Not a member yet? Register   Sign In
better practice using link reference
#1

[eluser]ranjitbd[/eluser]
//this is a link
1.<a HREF="&lt;?=base_url()?&gt;miscellaneous/goToTmbd.html">Travelmartbd.com</a>

//this is the function
function goToTmbd()
{
echo "[removed]
var uri = 'http://www.travelmartbd.com';
[removed].href=uri;
[removed]";
}

//this is the same link
2.<a HREF="http://www.travelmartbd.com">Travelmartbd.com</a><br>

//which one is the better practice 1 or 2 ? and why ?


Messages In This Thread
better practice using link reference - by El Forum - 08-27-2009, 02:55 AM
better practice using link reference - by El Forum - 08-27-2009, 04:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB