Hi ,
I wanna just write a clickevent to a button in JavaScript.But I wanted to test the script by using a global script file. I wanna know the structure of the global script file(*.js) eg(click.js)

I have used the following lines of code in a click.js script file and accessed the function dontclickme() from my script page.Can anyone explain me why these lines of codes doesn't work well.
Code for click.js file
<script language="JavaScript">
function dontclickme()
{
alert("I told u not to click me");
return(false);
}
</Script>

JScript done to access the code.
<html>
<head>
<script language="JavaScript" src="click.js>
</script>
</head>
<body>
<form method="post" action="mailto[email protected]">
<input type="button" name="mycheck" value="HA!" onClick="dontclickme()">
</form>
</body>
</html>

I have specified the global script file as click.js in src..
Do I need to do any other steps to do this?If I want to use a Global script file(which may be of use when we use many functions) then what should be done?

Thanks for your help
Oljynx