What is difference between local variable and global?
No Answer is Posted For this Question
Be the First to Post Answer
how can we generate alert message without referashing page in asp.net with language vb.net and script use in java script .means with out referash the page message in java alert
What are the characteristics of javascript ‘strict mode’?
What creates scope in javascript?
What is a name function in javascript & how to define it?
Describe what u had done today?
What are the predefined functions in javascript?
write a program to generte a harmonic series 1+1/2+1/3+1/4+1/5 upto 15 terms.
What is the difference between undeclared & undefined?
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" />
What is the use of dom?
Explain “use strict” ?
What can be the challenges during testing a program or a system?