G
Guest
I want to group all the javascript functions into a file named MiscFunc.js in
a asp.net project.
========================================
e.g. In MiscFunc.js
function dummyFunc(var1, var2)
{
alert(var1 + var2);
}
========================================
This javascript function will be called when a asp button is clicked.
========================================
butSubmit.Attributes.Add("onclick", "dummyFunc('abc', 'dec'); ")
========================================
and i've already added statement in the following in the <head> block of HTML
========================================
<script language="javascript" src="MiscFunc.js"></script>
========================================
Of coz, the code i stated above does not work anyway.
Do anyone of you knows how to make it work ?
thx
a asp.net project.
========================================
e.g. In MiscFunc.js
function dummyFunc(var1, var2)
{
alert(var1 + var2);
}
========================================
This javascript function will be called when a asp button is clicked.
========================================
butSubmit.Attributes.Add("onclick", "dummyFunc('abc', 'dec'); ")
========================================
and i've already added statement in the following in the <head> block of HTML
========================================
<script language="javascript" src="MiscFunc.js"></script>
========================================
Of coz, the code i stated above does not work anyway.
Do anyone of you knows how to make it work ?
thx