Do you need to declare variables in javascript?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More JavaScript Interview Questions

How to set a html document's background color?

0 Answers  


Write a program to reverse a string in pure javascript?

0 Answers  


What is event bubbling and capturing 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  


What is javascript and its advantages?

0 Answers  






How to associate functions with objects using javascript?

0 Answers  


What is the use of dom?

0 Answers  


If 2 methods have same name and same number of parameters, which one will be executed first?

0 Answers  


What is the importance of javascript?

0 Answers  


What are associative arrays in javascript?

0 Answers  


What does “1?+2+4 Evaluate to? What about 5 + 4 + “3??

0 Answers  


Event bubbling and Event Capturing in JavScript?

0 Answers  


Categories