Top Categories
javaScript tutorial for beginners - 04 - different ways to display-output using javaScript
- Category:
- Sub Category:
Welcome to Tech Talk Tricks and in this video, we will learn about javascript output means different ways to display-output using javaScript.So stay tuned and watch different way to fetch data in javascript. JavaScript Display Possibilities JavaScript can "display" data in different way
Welcome to Tech Talk Tricks and in this video, we will learn about javascript output means different ways to display-output using javaScript.So stay tuned and watch different way to fetch data in javascript. JavaScript Display Possibilities JavaScript can "display" data in different ways: Writing into an HTML element, using innerHTML. Writing into the HTML output using document.write(). Writing into an alert box, using window.alert(). Writing into the browser console, using console.log(). Using innerHTML To access an HTML element, JavaScript can use the document.getElementById(id) method. The id attribute defines the HTML element. The innerHTML property defines the HTML content.