Answer Posted / 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 |
Post New Answer View All Answers
What are the limitations of javascript?
What are Cookies in Javascript?
How long does it take to get good at javascript?
Do you need to declare variables in javascript?
Are there any iphone Institutes which also train iphone automation testing in Hyderabad?
Explain the role of deferred scripts in javascript?
How to get checkbox status whether it is checked or not?
How to find radio button selection when a form is submitted?
What is the function of javascript?
Explain how to detect the operating system on the client machine?
What is javascript hoisting?
What happens when the recursion calling is applied on two functions?
What are the difference between javascript and jquery?
What are the properties of stack?
What is design pattern in javascript? Explain