Script Categories

Buttons Effects >>> Alert Button.

This is probably the simpliest Button JavaScript. Copy 4 lines of HTML into your document and you have a button alert! The button can have different words on it and the message can also be customized.

Add the below code to the <body> section of your page:

TYPE="button" VALUE="Click here to be alerted"
onClick='alert("There.  You have been alerted.")'>

Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).