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 argument objects in javascript?

984


Define anonymous function.

998


What is whitespace in javascript?

1061


List some of the disadvantages of javascript.

1174


Which company developed JavaScript?

1076


How to prevent modification of an object in Javascript?

1263


Who is the world famous hacker?

1008


How to define a anonymous function?

1001


To set all checkboxes to true using javascript?

1150


Does html5 replace javascript?

991


What is the role of javascript in a web page?

986


Can you run javascript in notepad?

938


how can we retrieve value from one database server and store them another database server using sql server code

2198


What is javascript used for in web design?

1072


Can you assign a anonymous function to a variable?

986