Using JavaScript function from HTML Button doesn't work -
i'm working xdk , want add html button should call js function. js file created in project , included <script type="text/javascript" src="app.js"></script>
my button code is:
<form> <input id="change_button" type="button" value="change" onclick="change();"/> </form>
and js function:
function change() { alert("hello! alert box!!"); }
for reason nothing happens when press button. maybe i'm missing something. hints how solve problem.
the function should work, check path of app.js file
Comments
Post a Comment