Advertisement
chaaben7

HTML JavaScript

Sep 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. JavaScript makes HTML pages more dynamic and interactive.
  2.  
  3. The <script> tag is used to define a client-side script (JavaScript).
  4.  
  5. The <script> element either contains scripting statements, or it points to an external script file through the src attribute.
  6.  
  7. Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
  8.  
  9. To select an HTML element, JavaScript very often use the document.getElementById(id) method.
  10.  
  11. This JavaScript example writes "Hello JavaScript!" into an HTML element with id="demo":
  12.  
  13. An exemple code here: http://ow.ly/zexM304xrlr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement