How to display Alert in JavaScript
Answer / 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 |
Explain closures in javascript?
What is the importance of <script> tag?
What's the difference methods get and post in html forms?
Explain the typeof operator?
What do ellipses mean in javascript?
What can be the challenges during testing a program or a system?
How to define a named function in JavScript?
What is scope variable in javascript?
What do you use javascript for?
hello sir my name is naga sekhar i completed my b-tech in 2011 with 61% in IT streme.I completed my core and advanced java coure before 8months back.Still i did not get the job.i tried so many times.and i went to some interviews but no use.now i want to get the job in software sector
Is javascript event driven?
Explain javascript debounce function?