Categories > Web Coding

Javascript Alert Box

(1/1)

jdaniele:
Put this script in the body of the HTML page.

=====================================
<button onclick="myFunction()">Try it</button>

<script>
function myFunction() {
    alert("I am an alert box!");
}
</script>
=====================================

Navigation

[0] Message Index

Go to full version
Free Web Hosting