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 |
How can javascript be used to personalize or tailor a web site to fit individual users?
Why do you need javascript?
What is event in web programming?
Is array an object javascript?
What is the difference between Local Storage and Session Storage?
Are Typescript and Javascript the same?
What are the characteristics of javascript ‘strict mode’?
how to validate the date(dd/mm/yyyy)using regular expression in javascript? It should also satisfy the leap year feb 29 problem. Please help me.
What are types of javascript?
How do I use javascript to password-protect my web site?
What does 3 dots mean in javascript?
What is the difference between firstChild and firstElementChild?