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 |
What would be the result of 3+2+”7″?
When selecting the states by giving the country as input using ajax cal, how can we ensure that every time it is hitting the DB and fetching the data? Many time it may load from the cache.
Can I write javascript in notepad?
What do ellipses mean in javascript?
What is a function callback?
why we use javascript in html ?
What is a global variable in programming?
What do you mean by script?
How to modify the url of the page without reloading the page?
What are the properties of stack?
What is jscript used for?
What are the ways to emit client-side javascript from server-side code in asp. Net?