Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: Javascript Codes Library >> Alerts >> Button >> Alert Button


Code Snippet </> Info


Snippet Name: Alert Button

Description: Put an alert button on your website.


Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser

Note: Change the onClick message to your own preference.

onClick='alert("Your Message Here!")

Author: SnapBuilder <snippets@snapbuilder.com>

Last Modified: 2014-05-14 19:44:17

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying

<html> <head> <title>Alert : Button Alert</title> </head> <body> <input type="button" value="Click here to be alerted" onClick='alert("You have just been alerted!")'> </body> </html>


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library