Hi,
I'm trying to load a js file and a textbox into an HTML file. I'm using the following code.
The textbox is loaded successfully, however the js file is not loaded, i'm not able to call a function that is inside the js file.Code:document.getElementById("yyyy").innerHTML = '<script type="text/javascript" src="http://yyyyy.js"></script> <input type="text" name="yyyyBox" onKeyUp="convert()">';
Error msg
Code:test.html:1 Uncaught ReferenceError: convert is not defined
I was wondering if there is a way to get this working.
Thanks




Reply With Quote