What will happen if an infinite while loop is run in Javascript?


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

Post New Answer

More JavaScript Interview Questions

Which javascript framework is in demand?

0 Answers  


How do I open a website code?

0 Answers  


How to Object.entries( ) In JavaScript ?

0 Answers  


Explain equality operators in javascript?

0 Answers  


Is it possible to use javascript to change the meta-tags of the page?

0 Answers  






What are the various functional components in javascript?

0 Answers  


What are the new ways to define a variable in Javascript?

0 Answers  


What is are the types of the pop up box es available in javascript?

0 Answers  


How to force a page to go to another page using javascript ?

0 Answers  


Why extending array is bad idea?

0 Answers  


HI friends .am Mohammed Riyash.JMC BCA Tricy. My doubt is. In some websites like bloomberg.com..etc. when MouseOver() action performed.the menuitems will be drop down..and hides when blur()action happened.any body give the code for that..

1 Answers   iGate, Reliance,


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  


Categories