Click here to Skip to main content
15,914,795 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to function one and function two call from onblur event
Posted

1 solution

HTML
<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>
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900