java - Window.open() in GWT opening file -
i'm trying run code
string outputfile = "file:///c:/reports/1016.html"; window.open(outputfile, "test", ""); window.open("http://www.bing.com/", "bing", "");
as can see, outputfile not weblink, file. chrome/firefox not seem want open it, keep opening about:blank window. thought had done wrong added third line actual webaddress works fine. doing wrong here? can window.open() not open files?
i think security reasons.
try start chrome browser disabled security , see happens:
chromium --disable-web-security
if local file shown, know security reasons disabled. (and can nothing against it).
maybe web debugger shows warning (f12
)
Comments
Post a Comment