Duration: 20 minutes
Summary: In this video, we looked at three things: (1) user interaction, (2) manipulating element content, and (3) toggling check boxes. First, we learned about prompt, confirm and alert. We asked the user for some value and we gave a default value as a guide. Then, we confirmed some selection with a message, and we used alert to give the user feedback. In the second case, we created a span with an id. Then we show how we can change the content of the span using firstChild and nodeValue. Finally, we created two radio buttons and a button. We added code to toggle the radio buttons back and forth as the user clicks on the button.
Methodology of the development of example: Good coding standard and simplified design.
Technology Used: JavaScript – Core language Concepts
Keywords: JavaScript, HTML, confirm, prompt, alert, function, getElementById, onclick, checked, firstChild, nodeValue, document.