<!DOCTYPE html> <html> <head> <script> function myFunction(name,job) { alert("Welcome " + name + ", the " + job); } </script> </head> <body> <p>Click the button to call a function with arguments</p> <button onclick="myFunction('Fred','Muscian')">Click me</button> <button onclick="myFunction('Micky','Mouse')">Click me</button> </body> </html>