hi
ive created an html document dynamically with javascript and am having troubles getting the submit button to work. the code for the button is as follows:
var submit = document.createElement(“input”);
submit.setAttribute(“type”, “button”);
submit.setAttribute(“value”, “End Consultation”);
submit.setAttribute(“onClick”, “changes(p, form)”);
form.appendChild(submit)
the button shows up, but when clicked it will not run the changes(p, form) function. if i remove the ” ” around changes(p, form) it will run the function when the page loads, but still not when the button is clicked. Can anyone see what the problem is? does anyone have any suggestions?? much thanks
Migu