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 |
How can you get the reference of a caller function inside a function?
How many data types are there in javascript?
What’s relationship between javascript and ecmascript?
What is event bubbling in JavaScript?
Public Static Void Main(String args[]) { System.out.in("Hai.."); } In the above code why string args[] is required.... If we are not giving command line argument..
What is a currying function?
Is javascript a dynamic language?
Define escape() function?
How to manage exception handling in javascript?
What is the use of 'bind' method in JavaScript?
What is the javascript function?
Is javascript free to use?