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 is the ‘Strict’ mode in JavaScript and how can it be enabled?
How do browsers work?
Difference between window, document, and screen in Javascript?
What is namespacing in javascript and how is it used?
Is there any ide for javascript?
Hi Friends, I am new to java, please provide some use full docs, and where can i get basic Java script docs... thanx in advance
What is an onclick?
I am working on project in asp.net in which i have opned doc file on client side.plz send me coding on markpatentoffice@yahoo.com.
How to detect browser name using JavaScript?
what is service now ticketing tool how it works
What is a method in javascript?
Is it possible to assign a php variable to javascript ? And also is it possible to fetch the page contents if the url is not under our control ?