Answer Posted / 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 |
Post New Answer View All Answers
What is the Infinity property used for in Javascript?
What makes a relation a function?
What is a function in javascript and how does it work?
How can you read properties of an Object in JavaScript?
What are all the looping structures in javascript?
What is trim whitespace google sheets?
Program to return the address family of a socket
How to submit a form using JavaScript by clicking a link?
How to open url in a new tab in javascript?
What is postback in javascript?
Difference between window, document, and screen in Javascript?
Which operator is used to assign a value to a variable?
How do I run javascript in chrome?
How can you create an Array in JavaScript?
What is difference between local and global scope in javascript ?