Events


<button onclick="myFunction(event)">Press This</button> 

function myFunction(event) {
};

Using JQuery

<button class="btn btn-default" id="myid">Press This</button> 

$('#myid').bind('click', myFunction);
$('#myid').click(myFunction);
$('#myid').on('click',myFunction);

window
onload




© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrev