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 the distinct types of error name values?
What is a null variable in javascript?
How do I add javascript to chrome?
How to define a named function in JavScript?
What are the ways of making comments in javascript?
Will javascript be replaced?
What are the advantages of using external javascript?
What is a fixed-width table and its advantages?
How to define name function in javascript?
What is the concept of “functions as objects” and how does this affect variable scope?
What is a good javascript editor?
How do functions work in javascript?