I am having problem with following code. Its showing compliation error:- "Identifier Expected".
<script type="text/javascript" runat = "server">
function isOverElement(currentElement, targetId)
{
while (currentElement)
{
if (currentElement.id == targetId)
return currentElement;
currentElement = currentElement.parentNode;
}
return null;
}
</script>
The problem is in line:- function isOverElement(currentElement, targetId) Rest all is OK, I suppose.
please help. thnx