javascript does not support client-side file systems. The fact that you can do it locally means tyour system is the "server", and hat's why you can access it. If you want the user to be able to scroll a file when the site is actually deployed on a real web serer, you have to load the file from a suitable url. this means that the file must be somewhere on the internet (note "the internet" does NOT include a user's local file system).