Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to display Alert in JavaScript



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

Post New Answer

More JavaScript Interview Questions

What are events in javascript?

0 Answers  


What does two exclamation marks mean in javascript?

0 Answers  


What is the disadvantage of javascript?

0 Answers  


How to test 404 page in QA

0 Answers  


What is an example of javascript?

0 Answers  


What is function overloading in javascript?

0 Answers  


How do you check if a value is a number in javascript?

0 Answers  


What is meant by object oriented programming?

0 Answers  


How to create scale in P info

0 Answers   MAHINDRA,


Why do we use javascript?

0 Answers  


program showing string concatenation?

4 Answers  


What is Browser Object Model?

0 Answers  


Categories