RE: Javascript with gives document.forms[0].submit not a function error

2005-04-06 Thread Ramaiah, Sunil
I got the answer. I was using "submit" as the property value. Changed it to something else and it works -Original Message----- From: Ramaiah, Sunil [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 11:16 AM To: user@struts.apache.org Subject: Javascript w

Javascript with gives document.forms[0].submit not a function error

2005-04-06 Thread Ramaiah, Sunil
Hi I have a Java Script code like this - function displayRemovePackageMessage( ) { returnValue = confirm("You are about to permanently remove this package."); if( returnValue == true ) { alert(document.forms[0].name.value);