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
Who created npm?
How to test a string as a literal and as an object ?
What is the importance of javascript? Expalin
What is undefined x 1 in JavaScript?
What typeof returns for a null value?
Explain closures in javascript?
What is the requirement of debugging in javascript?
How do I open javascript in browser?
What is the concept of “functions as objects” and how does this affect variable scope?
List some features of javascript.
How to remove the event listener?
Why is javascript used for web pages?
How to reload a page using JavaScript?
What is double exclamation point?
What does js stand for?