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
Define unescape() function?
What boolean operators can be used in JavaScript?
What are the requirements of web application using javascript?
What is escape & unescape String functions in JavaScript?
What is jscript used for?
What is the difference between push() and concat() in javascript?
How dhtml is used in javascript?
What is the use of a set object in javascript?
What is the use of debugger keyword in javascript?
What are the primitive data types in JavaScript?
What is callback?
How to write comment in JavaScript?
How to check if a variable is an integer in javascript ?
Where can I learn javascript for free?
Is there automatic type conversion in JavaScript?