I am using some common Javascript functions I wrote that are required in several pages. I would prefer to have the functions in a single .js file and link to this file from the required web pages. How do I link to such a file ? I tried the same method as linking to a Stylesheet file, but it is not working.
<Link Href="MainStyles.css" rel="Stylesheet" type="text/css">
This is working fine
<LINK HREF="GenJS.js" type="text/javascript">
This is not working.
The contents of the GenJS.js file is
<SCRIPT Language="Javascript">
function Gablu()
{
alert ("Hullo") ;
}
</SCRIPT>
When I am trying to refer to the function Gablu(), I am getting the error 'Object Required'