Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Call More than One Function in One onClick Event in JavaScript</title> </head> <body> <script> // Defining custom functions function sayHello(){ alert("Hello World! sayHello() function executed successfully!"); } function sayHi(){ alert("Hi There! sayHi() function executed successfully!"); } </script> <button type="button" onclick="sayHello();sayHi();">Click Me</button> </body> </html>