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 external javascript?
What are anonymous functions in Javascript?
How to test PAGE LOAD TIME, RELOAD THE PAGE, CAPTURE THE URL'S , TEST THE PIXALS please please above all these how to test as a tester
How to define name function in javascript?
What is primitive data types in javascript?
How do I use an external javascript file?
What is "this"?
How can you detect the client operating system using javascript?
Explain the term closure?
Give an example of closure?
How do you add an element at the end of an array?
Why do we need javascript?
How to calculate fibonacci numbers in javascript?
Can you assign a anonymous function to a variable?
How to setting a cookie with the contents of a textbox?