mercredi 17 août 2016

Cannot open local file - Chrome: Not allowed to load local resource

Test browser: Version of Chrome: 52.0.2743.116

It is a simple javascript that is to open an image file from local like 'C:\002.jpg'

function run(){

   var URL = "file:///C:\002.jpg";

   window.open(URL, null);

} run();

Here is my sample code. http://ift.tt/2bdU1Vu

Please give me any suitable suggestions.




Aucun commentaire:

Enregistrer un commentaire