Ramaiah, Sunil wrote:
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;
}
}
<html:button property="submit" onclick='javascript: displayRemovePackageMessage (document.forms[0])'>
<bean:message key="mf.common.remove" />
</html: button >
Don't know; I use similar code with no issues.
Might be cleaner to say:
onclick='displayRemovePackageMessage(this.form)'
and actually use the parameter in the function. I use the above fairly frequently (or I pass in the form element I'm clicking and grab the form from it) with no issues. What browser are you testing on?
Dave "Yeah, I know, it's not a struts question" Newton
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]