<html> <head> <title>onClick Demo</title> <script> function i1() { alert("Welecome to india"); } function u1() { alert("Welecome to USA"); } function c1() { alert("Welecome to China"); } </script> </head> <body> <form> <input type="button" name="b1" value="india" onclick="i1()"> <input type="button" name="b2" value="US" onclick="u1()"> <input type="button" name="b3" value="China" onclick="c1()"> </form> </body> </html>