Click here to Skip to main content
14,638,900 members
Rate this:
Please Sign up or sign in to vote.
See more:
how to function one and function two call from onblur event
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

<input type="text" onblur="foo(); foo2();" />
<script>

function foo()
{
alert("Hi Sanjay!");
}

function foo2()
{
alert("You can call a second function on the event but they will not execute simultaneously, but rather consequently. Good luck :)");
}

</script>
   
v3
Comments
sanjay varsani 12-Aug-13 7:15am
   
THANKS DEAR BUT I HAVE TWO FUNCTION SO WHAT CAN I DO
sanjay varsani 12-Aug-13 7:17am
   
I HAVE A TWO FUNCTION IN <SCRIPT>(1) FUN ADD AND(2) FUN CLOSE</SCRIPT>
Joezer BH 12-Aug-13 7:23am
   
See updates solution
Sergey Alexandrovich Kryukov 12-Aug-13 17:31pm
   
Sure, a 5, but OP did not get anything, re-posted the question:
http://www.codeproject.com/Questions/635822/JAVASCRIPT-two-function-in-one-tag.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100