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 array explain it?
How to empty an array in JavaScript?
Is python better than javascript?
How do I install javascript?
What is the instanceof operator in JavaScript?
How to convert javascript date to iso standard?
What are javascript functions?
What is difference between deep and shallow object coping in javascript?
How will you create new object in javascript?
Is javascript object oriented?
Explain unescape() and escape() in javascript?
Are you concerned that older browsers don't support javascript and thus exclude a set of web users? Individual users?
how to write frame work Architecture in QTP
What is a boolean search?
Do hackers use javascript?