This is the code! I really don’t know why addTrack is not recognized :
<input type="submit" onclick="addTrack(this);return false" value=" Add ">
function addTrack(param) {
alert("ciao");
}
Error : Uncaught ReferenceError: addTrack is not defined
Set the script insertion mode to
no wrap (head)instead ofonLoadand it will work as expected.Updated fiddle here.