button onlclick function call in js code example Example: run function onclick javascript <button onclick="myFunction()">Click me</button>