I have following situation:
<body onLoad= "Init()">
my external javascript function (included in the html page):
this function is called before the total page is loaded.
solution 1:
add for example an alert box where you see "// ALERT", the scripts are not activated in the page. (a bad solution ofcourse)
solution 2:
i can add following line on the BOTTOM of the page:
<script language="javas cript">Init()</script>
I don't like this way around.
solution 3:
add "window.onl oad" in the function.
this don't work. I added it at the end of the function.
tnx
<body onLoad= "Init()">
my external javascript function (included in the html page):
Code:
function Init() {
if (CtFlgTouchScreen == true) {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "../js/vkb/keyboard.js";
document.getElementsByTagName("head")[0].appendChild(script);
VKBInput();
VKBTextArea();
}
// ALERT
}
solution 1:
add for example an alert box where you see "// ALERT", the scripts are not activated in the page. (a bad solution ofcourse)
solution 2:
i can add following line on the BOTTOM of the page:
<script language="javas cript">Init()</script>
I don't like this way around.
solution 3:
add "window.onl oad" in the function.
this don't work. I added it at the end of the function.
tnx
Comment