How you will write a java script function that display an alert on the screen?



How you will write a java script function that display an alert on the screen?..

Answer / hilmionell

alert("Hello my friend");

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is viewstate in javascript?

0 Answers  


hi i want validations for two drop down lists. when user enter to second list by skipping first list alert box should appear. <HTML><HEAD> <TITLE>drop down validation</TITLE> <script type="text/javascript"> function validateForm(){ if(document.ItemList.Item.selectedIndex==0) { alert("Please select item from first list."); document.ItemList.Item.focus(); return false; } return true; } </SCRIPT> </HEAD> <BODY> Please choose an item from the drop down menu: <form name="ItemList" method="post" action="asp.html" onsubmit="validateForm()"> <table width="100%" border="0"> <tr> <td width="135">Choose a username: </td> <td> <select name="Item"> <option value selected> SELECT </option> <option value>Apples</option> <option value>Oranges</option> </select> <table width="100%" border="0"> <tr> <td width="135">Choose a username: </td> <td> <select name="Item" onclick="validateForm()"> <option value selected> SELECT </option> <option value>Apples</option> <option value>Oranges</option> </select> <input type="submit" name="Submit" value="Submit"> </td></tr></table></form> </BODY> </HTML> please any body help me thanks

0 Answers  


Between JavaScript and an ASP script, which is faster?

0 Answers  


Write a Program using Servlet and JDBC for developing online application for displaying the details of Cars owned by the residents in XYZ society. Make necessary assumptions and create appropriate databases

0 Answers   Ignou,


Why typeof null is object?

0 Answers  






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

0 Answers  


What is trim whitespace google sheets?

0 Answers  


What are parameters in javascript?

0 Answers  


Write a JavaScript function which can take any number of strings as arguments and outputs them as a single concatenated string.

4 Answers  


What are the javascript objects?

0 Answers  


How do I enable cookies safari?

0 Answers  


Explain the difference between java and javascript.

0 Answers  


Categories