Viettel Cambodia Pte_17 11

of 2
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
  Why Study JavaScript? JavaScript is one of the 3 languages  all web developers must  learn: 1. HTML  to define the content of web pages 2. CSS  to specify the layout of web pages 3. JavaScript  to program the behavior of web pages This tutorial is about JavaScript, and how JavaScript works with HTML and CSS. JavaScript Can Change HTML Content One of many JavaScript HTML methods is getElementById() . This example uses the method to find an HTML element (with id= demo ) and changes the element content ( innerHTML ) to Hello JavaScript : A JavaScript function  is a block of JavaScript code, that can be executed when called for. 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() . <button type= button onclick= myFunction() >Click Me!</button> <p id= demo1 ></p> <p id= demo2 ></p> <script> function myFunction() { document.getElementById( demo1 ).innerHTML = Hello Dolly! ; document.getElementById( demo2 ).innerHTML = How are you? ;  } </script>
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks