Our Company uses a closed sourced shopping cart system for its e-comreace web site. The check out page is generated by a cgi script that I can not modify. I would like to replace the form validation script it generates with my own. The script I am trying to replace is the second script in the document. I have inserted the following script in the footer section:
document.body.getElementsByTagName("SCRIPT")[1].innerHTML = "New Validation Function Here";
however when the validation function is called the old one executes, not my new function.
Where am I going wrong? Is there a better way?
Chris