Loading external javascript in html when using TEdgeBrowser

301 views Asked by At

It seems when i use TEdgeBrowser and navigate to my html file, that loading external local javascript files in that html does not work. -nothing happens

for example i have in html:

<!DOCTYPE>
<html>
    <head>
        
    </head>
    <body>
        <script src="test.js"></script>
    </body>
</html>

And javascript file:

alert('HELLO');

It is simple example that should message me HELLO, but doesn't matter what is in javascript, it just doesn't load.

I don't get any DevTools errors.

When i run the html in normal browser for example chrome or edge on my pc, it works fine. Also, when i have a script that is not local, but remote, then it works too. So it seems that the problem is only with local files. (I run delphi as administrator).

What could be the problem? I have delphi 10.4.2

0

There are 0 answers