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

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


Please Help Members By Posting Answers For Below Questions

What is array in javascript?

906


If we want to return the character from a specific index which method is used?

1084


How to get an element by class in javascript ?

993


Where do I put javascript code in html?

964


What does undefined value mean in javascript?

1024


Do you need to declare variables in javascript?

857


What does ecma stand for?

798


How to open a window with no toolbar, but with the location object?

887


What is the difference between HTMLCollection and NodeList?

1001


How to create a cookie using javascript?

1004


Explain how to read and write a file using javascript?

911


What is a null variable?

883


What is event in javascript?

895


In which location cookies are stored on the hard disk?

918


What are the four types of javascript objects?

878