I am using the MasterPages for my website. When I added a javascript function, I am getting an error on all the pages that theForm is undefined.
I have added the following to the <head> section of Master Page
<script type="text/javascript" language="javascript" src="Script/FormFunctions.js" />
In the Formfunctrion.js, I have defined a simple function
function sayHello(str)
{
alert(str);
}
When I view the page, I get the error that theForm is undefined!!!!
When I see the source code for the page, I see
theForm = document.forms[aspnetForm] and the form id of my page is aspnetForm...
I can't understand what is causing the error...
can someone please explain!!!!!
Thanks
dabi123