Go to local URL with Javascript

When I try this: window.location.href = “https://stackoverflow.com/questions/14052473/file:///C:/Users/Cerbrus/Documents/SomeFile.js” (Yes, it is a valid path.) Chrome throws me this error: Not allowed to load local resource: file:///C:/Users//Documents/File.js This is because JavaScript does not have access to local files (due to it being sandboxed), and you’re setting the new url with JavaScript. “SandBoxed” means a technology has restricted … Read more