Changes

Jump to: navigation, search

Embedding JavaScript into Web pages

403 bytes added, 17:32, 12 June 2007
no edit summary
In this section we have looked and both inline and external JavaScript (using the ''src'' argument of the ''<script>'' element). The question now arises as to which is the best approach. The general recommendation is that JavaScript functions should be placed in external ''src'' files wherever possible. The reasoning behind this is that if you have JavaScript code that is used on multiple plages you can modify this code in one place (the external JavaScript file) without having to edit every page that contains the code.
 
<hr>
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[A Simple JavaScript Example|Previous]]<td align="center">[[JavaScript Essentials|Table of Contents]]<td width="20%" align="right">[[Introducing JavaScript Variables|Next]]</td>
<tr>
<td width="20%">A Simple JavaScript Example<td align="center"><td width="20%" align="right">Introducing JavaScript Variables</td>
</table>
<hr>

Navigation menu