JavaScript Limitations
Question: What can't JavaScript programs do?
Answer:
JavaScript code cannot do any of the following:
- use printers or other devices on the user's system or the client-side LAN
(For a workaround, see Printing JavaScript output.)
- directly access files on the user's system or the client-side LAN ;
the only exception is the access to the browser's cookie files.
(For a workaround, see the File Access section.)
- directly access files on the Web server.
(For a workaround, see the File Access section.)
- implement multiprocessing or multithreading.
If you do need to
access files or perform other "privileged" operations,
you can use JavaScript in combination with a
Java applet.
Signed Java applets are allowed to do "privileged" things,
and your JavaScript programs can exchange information with applets.
However, you have to bear in mind
the biggest JavaScript/Java limitation:
the user can always disable Java or JavaScript or both!
JavaScripter.net.
Copyright
© 1999-2006, Alexei Kourbatov