how to make a button execute a javascript function code example Example: how to make a button execute a javascript function <button onclick"function name">Click</button>