Asp.Net Javascript compilation Error: "Identifier Expected"
<p>I am having problem with following code.
Its showing compliation error:- "Identifier Expected".</p>

<pre><code>&lt;script type="text/javascript" runat = "server"&gt;
function isOverElement(currentElement, targetId)
        {
            while (currentElement)
            {
                if (currentElement.id == targetId)
                    return currentElement;

                currentElement = currentElement.parentNode;
            }

            return null;
        }
&lt;/script&gt;
</code></pre>

<p>The problem is in line:-
<strong>function isOverElement(currentElement, targetId)</strong>
Rest all is OK, I suppose.</p>

<p>please help.
thnx</p>
