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 is the ‘Strict’ mode in JavaScript and how can it be enabled?

0 Answers  


How do browsers work?

0 Answers  


Difference between window, document, and screen in Javascript?

0 Answers  


What is namespacing in javascript and how is it used?

0 Answers  


Is there any ide for javascript?

0 Answers  


Hi Friends, I am new to java, please provide some use full docs, and where can i get basic Java script docs... thanx in advance

8 Answers  


What is an onclick?

0 Answers  


I am working on project in asp.net in which i have opned doc file on client side.plz send me coding on markpatentoffice@yahoo.com.

0 Answers   IBM,


How to detect browser name using JavaScript?

0 Answers  


what is service now ticketing tool how it works

0 Answers   Ideal Vision,


What is a method in javascript?

0 Answers  


Is it possible to assign a php variable to javascript ? And also is it possible to fetch the page contents if the url is not under our control ?

1 Answers  


Categories