Answer Posted / veerahema
<!DOCTYPE html>
<html>
<body>
<h1>The Window Object</h1>
<h2>The alert() Method</h2>
<p>Click the button to display an alert box.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
alert("Hello! I am an alert box!");
}
</script>
</body>
</html>
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is push() method in javascript?
In javascript what is an argument object?
Is python better than javascript?
Explain javascript closures by example.
Why do we need javascript?
How to convert json object to string?
Why do we need currying?
How to validate a form in javascript?
Explain few difference between null, undefined or undeclared javascript variable?
Explain javascript accessors ?
Name some of the built-in methods and the values returned by them.
How long does it take to learn coding?
What is the microsoft version of javascript?
What's the date object using javascript?
How about 3+5+"8"?