by dafunkymunky on Mon May 02, 2005 6:24 am
hi nothing2lose
oh yes there are two ways to do it(or maybe more)
i'll tell you two ways
one is callone function and at the end of the first function call the second function
like this
function function1()
{
-------
-------
-----
function2();
}
function function2()
{
------
-----
-----
}
<onsubmit="function1()">
or the second way is call both of them together
i.e
<onsubmit="function1();function2()">
here are example codes
1.....
<HTML>
<script language="javascript">
function function1()
{
alert("this is from function1");
//call the second function here
function2();
}
function function2()
{
alert("this is from function2")
}
</script>
<input type=Button value="click here" onclick="function1()">
</HTML>
and
<HTML>
<script language="javascript">
function function1()
{
alert("this is from function1");
}
function function2()
{
alert("this is from function2")
}
</script>
<input type=Button value="click here" onclick="function1();function2()">
</HTML>
--DAFUNKYMYNKY
--------DAFUNKYMUNKY--------
::THE::NECESSARY::[D]EVIL::
....errr i mean munky....