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); document.forms[0].submit (); } else { return returnValue; } } I call this java script function from the struts code - <html:button property="submit" onclick='javascript: displayRemovePackageMessage (document.forms[0])'> <bean:message key="mf.common.remove" /> </html: button > I am getting the javascript error - document.forms[0].submit is not a function Any clues ? Thanks, Sunil.