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

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

java - Sql2o with postgres, No results were returned by the query -