Vignesh Subramanian
Vignesh Subramanian

Reputation: 7289

window.open opens up a blank page

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

Upvotes: 0

Views: 1553

Answers (1)

Absalon Valdes
Absalon Valdes

Reputation: 910

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.

Upvotes: 1

Related Questions