I created a working example. CHe if completed and launched, when the page loads
localhost: 8080
The code that does this is:
myhtml:='<html>';
myhtml:=myhtml + '<head><title> Test web </title><head>';
myhtml:=myhtml + '<body onload="alert(''Hello World'');">Test web</body>';
myhtml:=myhtml + '</html>';
launches an alert that says Hello World. Now I wish they would change the code so
myhtml:='<html>';
myhtml:=myhtml + '<head><title> Test web </title>';
[b]myhtml:='<script type="text/javascript" src="myjslib\miojavascript.js"></script><head>';[/b]
myhtml:=myhtml + '<body onload="MyFunction();">Test web</body>';
myhtml:=myhtml + '</html>';
Where MyFunction (); It is contained in the Javascript file. Who tells me how to do?
I attach as upfront with the javascript file already created