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 |
Why is javascript good for websites?
What would be the result of 3+2+”7″?
In Java coding we will write a public static void main()? Why won't we write as a static public void main()
Why is javascript so popular?
What are javascript objects?
Why do we need javascript?
What is encodeuri() in javascript?
How can a Javascript code redirect the user to a different page?
What does the following statement declares?
Which built-in method returns the length of the string?
Define escape() function?
Are there any training Institutions on iphone Automation testing?