telmessos
09-26-2008, 07:16 PM
Hi All,
I would like to learn if it is possible to run a javascript function from a button put by an InnerHTML
The code follows is the code working on my web site. It successfully puts the Submit button but does not make the redirection on submission of the form. Is there a way to do it ?
var mesaj2 = "<input type=\"submit\" value=\"Go To Payment Page\" onclick='window.location = clientinfo.asp?action=thankyou>'"
document.getElementById("submitarea2").innerHTML = mesaj2;
I would like to learn if it is possible to run a javascript function from a button put by an InnerHTML
The code follows is the code working on my web site. It successfully puts the Submit button but does not make the redirection on submission of the form. Is there a way to do it ?
var mesaj2 = "<input type=\"submit\" value=\"Go To Payment Page\" onclick='window.location = clientinfo.asp?action=thankyou>'"
document.getElementById("submitarea2").innerHTML = mesaj2;