Minimise inline JavaScript

Almost all JavaScript code should be in separate JavaScript files. There should be the smallest possible amount of JavaScript inline in the HTML code of pages.


Other examples in Guidelines (JavaScript tutorial)
Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0