Author Topic: Javascript Alert Box  (Read 129 times)

Offline jdaniele

  • Administrator
  • Member
  • *****
  • Posts: 251
    • View Profile
Javascript Alert Box
« on: October 04, 2017, 10:04:18 PM »
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>
=====================================
"The true sign of intelligence is not knowledge but imagination." - Albert Einstein

 

Free Web Hosting