Question Detail


6 years ago Views 1371 Visit Post Reply

i am haveing problem when im aleart

Thread Reply

The Developer

- 4 years ago

You have to write your javascript code within script tag


<!DOCTYPE html>

<p>Click the button to display an alert box.</p>

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

function alertFunction() {
  alert("HELLO WORLD! I am an alert box Example!");