Forum : Adding 2 Event Handlers for Single onClick Event
Brief description  about Online courses   join in Online courses
View Murali  Mohan 's Profile

Adding 2 Event Handlers for Single onClick Event

Hi,
Can you please help to put multiple actions on a single onClick event.

Thanks,
MuraliMohan
Asked by Murali Mohan | Jan 12, 2010 |  Reply now
Replies (1)
View sanjay s nair 's Profile
<html>
<head>
<script language=javascript>
function action1(){alert('action1')}
function action2(){alert('action2')}
</script>
</head>
<body>
<a href=# onclick="action1(); action2();">Multiple action on single event</a>
</body>
</html>
Jan 13, 2010