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 improve the "look and feel" of a web site? By the same token, how can javascript be used to improve the user interface?
What does three dots mean in texting?
What are the different actions that are performed using javascript?
What is the best free ide?
How do I run javascript on my iphone?
How do you submit a form using JavaScript?
What do “1”+2+4 evaluate to?
Why it is not advised to use innerhtml in javascript?
How to check if a variable is an integer in javascript ?
What close() does in javascript?
How do you write an event emitter base class that allows you to add event listeners?
How do I retrieve a cookie with a given name using a regular expression?