Hi,
When the following code executes it gets to the end of inProductSearch function and doesn’t return back to the body of the HTML to write ‘5’.
In IE the page finishes and everything up to number 2 is displayed, it does not write '5'. The same in Firefox, however in Firefox the hourglass just stays there. Has anyone got any idea why this is happening.
<html>
<head>
<script LANGUAGE="javascript" TYPE="text/javascript">
function breadcrumb()
{
var currentURL = document.URL
inProductSearch(1, currentURL)
document.write("2")
}
function inProductSearch(callerID,currentURL)
{
if(callerID == 1)
{
var URLArray = currentURL.split("=")
var temp = URLArray.length
var finalString = URLArray[temp - 1]
document.write("finalString is: " + finalString)
document.write("<a href = ' + finalString + ".co.uk'>" + finalString + "</a>")
document.write("1")
}
}
</script>
</head>
<body onload="breadcrumb()">
5
</body>
</html>
When the following code executes it gets to the end of inProductSearch function and doesn’t return back to the body of the HTML to write ‘5’.
In IE the page finishes and everything up to number 2 is displayed, it does not write '5'. The same in Firefox, however in Firefox the hourglass just stays there. Has anyone got any idea why this is happening.
<html>
<head>
<script LANGUAGE="javascript" TYPE="text/javascript">
function breadcrumb()
{
var currentURL = document.URL
inProductSearch(1, currentURL)
document.write("2")
}
function inProductSearch(callerID,currentURL)
{
if(callerID == 1)
{
var URLArray = currentURL.split("=")
var temp = URLArray.length
var finalString = URLArray[temp - 1]
document.write("finalString is: " + finalString)
document.write("<a href = ' + finalString + ".co.uk'>" + finalString + "</a>")
document.write("1")
}
}
</script>
</head>
<body onload="breadcrumb()">
5
</body>
</html>