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

How much time it will take to learn javascript?

0 Answers  


In a java script, what is the difference between "==" and "===" operator?

0 Answers   Expedia,


Is javascript default scripting language?

0 Answers  


What is viewstate in javascript?

0 Answers  


What are a fixed-width table and its advantages in javascript?

0 Answers  


Explain the for-in loop?

0 Answers  


What is called variable?

0 Answers  


How is it possible to get the total number of arguments that are passed to a function?

0 Answers  


What are exports and imports?

0 Answers  


Why is javascript dangerous?

0 Answers  


List different ways of empty an array in javascript?

0 Answers  


What are ‘settimeout()’?

0 Answers  


Categories