RSS

The script tag

Thu, Jul 24, 2008

Code, JavaScript

There are two ways of adding JavaScript to a web page.

The first one allows you to add scripts directly to your page.

<script type="text/javascript">
:::scripts:::
</script>

The other way is attaching a JavaScript file to your web page like so.

<script type="text/javascript" src="my-javascript-file.js"></script>
Share and Enjoy:
  • Facebook
  • Twitter
  • MySpace
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
,

Comments are closed.