Can anyone tell me why this script isn't working, I'm pretty sure that the problem is here (in the body):
<a href=" + strSvr +"><b>text text</b></a>
the entire script:
<script>
function getNvp(strKey) {
strVal = window.location.search.substr(1);
if(strVal.indexOf(strKey) >= 0)
{
strVal = strVal.substr(strVal.indexOf(strKey) + strKey.length);
// Check for & or +
if(strVal.indexOf("&"
>= 0)
{
strVal = strVal.substr(0, strVal.indexOf("&"
);
}
else if(strVal.indexOf("+"
>= 0)
{
strVal = strVal.substr(0, strVal.indexOf("+"
);
}
}
else
{
strVal = "";
}
return strVal;
}
// Get the server name
strSvr = getNvp("source="
;
strUrl = "<a href= + strSvr+"><font
color=#cc0000><b>pre-application approval</b></font></a>";
document.write (strUrl)
</script>
in the body (I'm pretty sure that this is where the problem is:
<a href=" + strSvr +"><b>text text</b></a>
All help is appreciated, thank in advance!
<a href=" + strSvr +"><b>text text</b></a>
the entire script:
<script>
function getNvp(strKey) {
strVal = window.location.search.substr(1);
if(strVal.indexOf(strKey) >= 0)
{
strVal = strVal.substr(strVal.indexOf(strKey) + strKey.length);
// Check for & or +
if(strVal.indexOf("&"
{
strVal = strVal.substr(0, strVal.indexOf("&"
}
else if(strVal.indexOf("+"
{
strVal = strVal.substr(0, strVal.indexOf("+"
}
}
else
{
strVal = "";
}
return strVal;
}
// Get the server name
strSvr = getNvp("source="
strUrl = "<a href= + strSvr+"><font
color=#cc0000><b>pre-application approval</b></font></a>";
document.write (strUrl)
</script>
in the body (I'm pretty sure that this is where the problem is:
<a href=" + strSvr +"><b>text text</b></a>
All help is appreciated, thank in advance!