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 is a function object?
Is a hash table an array?
What is new keyword in javascript?
Is javascript insecure?
I need project details about WEB CONTENT FILTERING USING NEURAL NETWORKS and how to explain it....plz help me in this topic.....
What is the difference between the keywords var and let?
How do you reverse a string in javascript?
Which company developed JavaScript?
How to create multiline strings in javascript?
What is the disadvantage of javascript?
Which keyword is used to print the text in the screen?
What is unescape() function?