Calling a function from a HTML button

Viewed 11362

I wonder what I am doing wrong in this case? I got this button which is an HTML element. When I click on it, I want the function push() to get activated. Unfortunally my console says:

ReferenceError: push is not defined

Can some one help me in this case? Thanks so much!

<button type="button" onclick=push()>Click Me!</button> 
<script type="text/javascript">
function push (){.....};
</script>

2 Answers
Related