burnt my javascript to a cd, it won't work from my cd

why would you do this? If it doesn't work just copy it to the local drive.

How are you addressing it from the HTML page?

If you addressed it with website absolute addressing, the computer running the version on CD won't be able to find the file.

If you addressed it from the C: drive, the computer running the version on CD (the D: drive) won't be able to find the file.

If the HTML is in one folder and the JS is in another folder, it won't work. The method needed to address this on a website is different from the method needed to address this on a local disk on the computer browsing it.

To make it work reliably on both a website and a CD, both files must be in the SAME folder, and only the filename must appear in the script tag call.

I run JS from CDs and it works fine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.