What is the use of anonymous function in javascript?


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

Post New Answer

More JavaScript Interview Questions

What output will this program produce System.out.println(x+"+"+y+"="+(x+));

0 Answers  


i want to display time using hidden variable in a page,but when i click button that page that hidden variable loosing its value.i m sending the code also. <script type="text/javascript" language="javascript"> var tick=0; window.onload = function() { //debugger if(document.getElementById("hdnTicker").value != "") tick = parseInt(document.getElementById("hdnTicker").value); setInterval("Timer()",1000); } function Timer() { //debugger document.getElementById("hdnTicker").value = tick++; //alert(document.getElementById("hdnTicker").value); document.getElementById("lblTimeSpent").innerHTML = "0." + tick; if(tick == 30) { //message or redirect to result window alert('time is out'); //clearTimeout(); } } </script> <form id="form1" runat="server"> <div> <table> <tr> <td> <asp:Label ID="lblTimeSpent" runat="server" Visible="true" ForeColor="Blue" ></asp:Label> </td> <td> <%-- <asp:textbox EnableViewState="true" id="hdnTicker" runat="Server" style="visibility:hidden"></asp:textbox>--%> </td> </tr> <tr> <td> <asp:Button ID="btn" runat="server" Text="hi" OnClick="btn_Click" Height="30px" Width="60px" /> </td> </tr> </table> <%--<asp:HiddenField ID="txt" runat="server" Visible="true" />--%> </div> </form> <input type="hidden" id="hdnTicker" name="hdnTicker" enableviewstate="true" runat="server" />

1 Answers  


Why javascript is called lightweight language?

0 Answers  


WHAT IS .NET?

1 Answers  


How to create an object using javascript?

0 Answers  






Methods get and post in html forms - what's the difference?

0 Answers  


How would you organize your javascript code?

0 Answers  


what is the difference between wrappers and primitives es: diff between int i=200 in primitives and integeri = new integer(54)

0 Answers  


Can you give an example showing javascript hoisting?

0 Answers  


How do you convert numbers between different bases in JavaScript?

4 Answers   College School Exams Tests, Satyam, UIST, Wipro,


how to activate and deactivate the constraint with all the default values

0 Answers  


Why is java better than javascript?

0 Answers  


Categories