How to display Alert in JavaScript
Answer / 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 |
What are events in javascript?
What does two exclamation marks mean in javascript?
What is the disadvantage of javascript?
How to test 404 page in QA
What is an example of javascript?
What is function overloading in javascript?
How do you check if a value is a number in javascript?
What is meant by object oriented programming?
How to create scale in P info
Why do we use javascript?
program showing string concatenation?
What is Browser Object Model?