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 the characteristics of javascript ‘strict mode’?

0 Answers  


How do I get javascript?

0 Answers  


What are the different ways to create an array in javascript?

0 Answers  


what is flux in javascript?

0 Answers  


How do you target a specific frame from a hyperlink in javascript?

0 Answers  


What is a closure javascript? Explain

0 Answers  


How javascript variables work?

0 Answers  


How can you identify a function?

0 Answers  


What is the difference between ‘let’ and ‘const’?

0 Answers  


How to set the cursor to wait in JavaScript?

0 Answers  


Which built-in method returns the calling string value converted to upper case?

0 Answers  


program showing string concatenation?

4 Answers  


Categories