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 the Infinity property used for in Javascript?

1008


What makes a relation a function?

1058


What is a function in javascript and how does it work?

970


How can you read properties of an Object in JavaScript?

947


What are all the looping structures in javascript?

1083


What is trim whitespace google sheets?

938


Program to return the address family of a socket

1351


How to submit a form using JavaScript by clicking a link?

1059


How to open url in a new tab in javascript?

991


What is postback in javascript?

976


Difference between window, document, and screen in Javascript?

1109


Which operator is used to assign a value to a variable?

887


How do I run javascript in chrome?

989


How can you create an Array in JavaScript?

1037


What is difference between local and global scope in javascript ?

1026