You are here: Home / Computer /Web Site / Java Script

javascript

Presentation

Java Script is a language that you can use to give your web page certain characteristics.

At this point, we are straying quite a bit from the novice or newbie level. You will need a certain level of experience in programming. We will however try to explain in as simple terms as possible how to write and apply java script functions.

 

Where to position the script

To load the Java Script function, you place it between <head> and </head>

 

  • Two loading methods

 

Example 1:

<head>
...
<script type="text/javascript">
function(...)
{
...
}
</script>
...
</head>

 

Example 2: (We use an outside javascript)

<head>
...

<script src="/Javascript/file_javascript.js" type="text/javascript">
</script>

...

</head>

 

You can also place the JavaScript between <body> and </body>. In the latter case, the javascript commands will be associated to the individual web page, and will not disturb the CSS.

 

Java Commands

There are very many commands, and we will refer you here.