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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -