| Programming C# C++ (7) Delphi (617) Java (8) JavaScript (31) Document (8) Events (8) ExtJS (9) Strings (3) perl (9) php (4) VBScript (1) Visual Basic (1)
New related comments Number of comments in the last 48 hours How to prompt the user with an inputbox in Javascript |
Advantages of keeping Javascript in include files
(1 votes). Leave comments and/ or rate it.
Question: Should I embed my javascript code in HTML files or should I use include files? My pages share only some of the Javascript code.Answer: Obviously the advantage of keeping the code in an external *.js file is more obvious the more code your pages share. But even if the overlap is limited there are some other benefits:
Comments:
| |||||||||