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 argument objects in javascript?
Define anonymous function.
What is whitespace in javascript?
List some of the disadvantages of javascript.
Which company developed JavaScript?
How to prevent modification of an object in Javascript?
Who is the world famous hacker?
How to define a anonymous function?
To set all checkboxes to true using javascript?
Does html5 replace javascript?
What is the role of javascript in a web page?
Can you run javascript in notepad?
how can we retrieve value from one database server and store them another database server using sql server code
What is javascript used for in web design?
Can you assign a anonymous function to a variable?