I have a wordpress website [URL=”http://www.bloomingtonsouth.org/”]bloomingtonsouth.org
[CODE]function jumpScroll() {
var url = window.location.href;
if (url == “http://bloomingtonsouth.org/”)
{
alert(“Executing If Statement”);
window.scroll(0,1300); // horizontal and vertical scroll targets;
* }
*
else
{
alert(“Executing Else Statement”);
window.location = “http://www.bloomingtonsouth.org/?page_id=2039”
}
}
It seems that for some reason or another, the if function keeps coming up false even though it’s true, as you can tell by the fact that the “Executing Else Statement” alert comes up on the homepage. Does anyone see where the flaw in my code is. It’s worth noting that the header file is a php and the version of javascript is 1.2.