Skip to main content

Posts

Showing posts with the label javascript interview questions and answers

JavaScript countdown timer progress bar

The Table of Content for countdown timer. 1.         The JavaScript  Code 2.        The HTML Code 3.        The CSS Code JavaScript code-sample. //PROGRESS BAR TIMER METHOD. var progressTimer = function (timeleft, timetotal, $element) {     var progressTimerBarWidth = timeleft * $element.width() / timetotal;     $element.find( 'div' ).animate({ width: progressTimerBarWidth }, 1000).html(timeleft + " seconds left.." );     if (timeleft > 0) {         setTimeout( function () {             progressTimer(timeleft - 1, timetotal, $element);         }, 1000);     } else {       } }; //CALL PROGRESS BAR DISPLAY TIMER. progressTimer(ti...

javascript interview questions and answers

This is first example of java script(answer..)  Get the url of the parent page using java script(answer..)  Remove href-link at the run time from a any page using java script(answer..)  How to show the prompt-box using java script (answer..)  How to find the special characters using java script(answer..)  Show day-of-week using java script(answer..)  How to show the confirm-box using java script(answer..)  Validate a form using java script(answer..)  What is the use of eval() method and floor() method in java script(answer..)  What is the use of join() and isNAN() method in java script(answer..)  Can you tell me about methods in java script(answer..)  How to use a loop in java script(answer..)  What is the continue and break statement in java script(answer..)  Explain the java script Math(), String, Number object method(answer..)  What is the use of createTextNode() method in java script(answer..)...