I used .txt and .php extensions for Javascript files, but not .html.
Just try it...
BMR
David D. a écrit :
Quote:
When using the following syntax,
script type="text/javascript" src="foo.js"></script
does the file extension matter?
For example, could I instead use
script type="text/javascript" src="foo.html"></script
where "foo.html" really contains javascript, not HTML?
My ISP provides an HTML-based host file editor that allows one to only edit
files that have a .html or .htm extension. It would therefore be convenient
for my JS files to also have an .html extension.
- David D. |