Inner or External JavaScript code

Here a sample for including inner or external JavaScript inside your head tag. It uses always the script tag. This tag is always closed. A Javascript file ends with convetion using the ".js".

Example

Preview