Skip to main content

Home/ Learning Library/ Group items tagged Extensions

Rss Feed Group items tagged

Sunny Jackson

Learn Basic Words (Spanish, Portugues, Italian, Czech) | Imendi.com - 0 views

  •  
    Learn Foreign Languages
Sunny Jackson

JavaScript Where To - 0 views

  • JavaScripts in a page will be executed immediately while the page loads into the browser.
  • Scripts to be executed when they are called, or when an event is triggered, are placed in functions.
  • put all your functions in the head section, this way they are all in one place and do not interfere with page content.
  • ...8 more annotations...
  • <head> <script type="text/javascript"> function message() { alert("This alert box was called with the onload event"); } </script> </head>
  • Scripts placed in the body section are often used to display page content while the page loads.
  • JavaScript can also be placed in external files.
  • External JavaScript files often contains code to be used on several different web pages.
  • External JavaScript files have the file extension .js
  • External script cannot contain the <script></script> tags!
  • To use an external script, point to the .js file in the "src" attribute of the <script> tag:
  • <script type="text/javascript" src="xxx.js"></script>
1 - 14 of 14
Showing 20 items per page