0

I am trying to open a local html file

window.open("file:///C:/Users/somepath/www/index.html", "", "width=500, height=500");

But this ends up in opening a blank page

(the html file exists in that path)

JSFIDDLE DEMO

Vignesh Subramanian
  • 7,161
  • 14
  • 87
  • 150

1 Answers1

1

For security reasons both html files must to be in the same domain. A html file in the cloud can't open a local html file.

Absalón Valdés
  • 910
  • 7
  • 16