Javascript FAQAnswers to frequently asked questions about Javascript.Is the external file reference correct- (Found July 2, 2008 ) The Code Style site uses relative URL paths with a leading forward slash, ; this means the URL is relative to the root level of the domain, not the current directory. If you are adapting Code Style examples on a local file system, you will need to change these file references accordingly.http://www.codestyle.org/javascript/FAQ.shtml#fileref I can't get your script to work!- (Found July 2, 2008 ) A: One of the key steps in externalising scripts is to ensure that all script file references are accurate.http://www.codestyle.org/javascript/FAQ.shtml#debugscript My Javascript code is showing!- (Found July 2, 2008 ) A: It is conventional to put HTML comments around Javascript element content to hide it from browsers, like so ...http://www.codestyle.org/javascript/FAQ.shtml#comment Can I use a Javascript file stored as .jds- (Found July 2, 2008 ) A: On the Web, the file extension you use for Javascript is not as important as the Content-Type header it is served with. With Apache, add this line to your .htaccess configuration file:http://www.codestyle.org/javascript/FAQ.shtml#contenttype |