JavaScript in the browser is not normally allowed to do too much for security reasons.
Stuff it cannot do includes anything OS related - specifically:
- Cannot read/write arbitrary files
- Cannot access hardware directly
- Cannot control processes
JavaScript can do certain things through Web APIs:
- DOM manipulation (HTML/CSS)
- Local/session storage
- IndexedDB (database built into the browser)
- Cookies (with same origin)
- Clipboard (with user permission)
- Geolocation, camera, microphone (with user consent)
No comments:
Post a Comment