Go to local URL with Javascript
Same question as here but I need to go to local URL's in Firefox I tried with code like var url = "file:///E:/Test/Test.htm"; window.location.href = url; but id didn't work. Tried to go with window.location = url; and also tried with url = "file://E:/Test/Test.htm"; (double "/" instead of triple "/") and still doesn't work. Thanks When I try this: window.location.href = "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