JavaScript/JavaScript within HTML: Difference between revisions
[checked revision] | [checked revision] |
Content deleted Content added
No edit summary |
âThe script element: don't change the spelling |
||
Line 17:
</syntaxhighlight>
Inline scripting has the advantage that both your HTML and your JavaScript are in one file, which is convenient for quick development and testing. Having your JavaScript in a separate file is recommended for JavaScript functions that can potentially be used in more than one page, and also to separate content from
<noinclude>{{Todo|Talk through new HTML5 specification.}}
|