|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have a html file stored as the D:/proj/test.html. In the html file I
wish to load a javascript file---test.js which is stored in the same directory as test.html. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"/ <TITLE>Test Page</TITLE> <SCRIPT type="text/javascript" src="test.js"/> ... </HEAD> </HTML> But when I open the test.html from the hard disk, it seems that the javascript file is not loaded. Can html load javascript files from the local machine? Thanks in advance. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
ray wrote:
<snip> > Can html load javascript files from the local machine? Yes. But you must have your path correctly formatted (common Windows user error) -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com |
|
![]() |
| Outils de la discussion | |
|
|