I have a page with some javascript that add or remove some controls. Everything is working perfectly except when the page is viewed from Chrome (PC and ipad version). The problem is that my page reload when a button is clicked. The button event call a function
myButton.onclick = function () { myFunction(param1, param2); };
and the function is
function myFunction(param1, param2)
{
var formToRemove = document.getElementById(param1);
document.getElementById("div_" + param2).removeChild(formToRemove);
return false;
}
The 'return false;' is there because one of the post I've read suggested to add that line to prevent the page reload but this haven't helped me so far.
Any help will be greatly appreciated.