Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- download file : http://ow.ly/ZhzK30oVT44
Advertisement
Add Comment
Please, Sign In to add comment