Hello,
 
I have the following form with a non-submit button named "btnBack" that uses _javascript_ (first button below):
 

<html:form action="doSomething" method="post">

<TABLE>

<TR>

<TD ALIGN="left" VALIGN="top" WIDTH="67%">

<INPUT CLASS="secButton" STYLE="cursor:hand;" TYPE="button" onClick="history.go( -1);"

VALUE="<fmt:message key="cancel"/> &raquo;" NAME="btnBack" ID="ComparisonStep1Back" ACCESSKEY="C">

<INPUT CLASS="secButton" STYLE="cursor:hand;" TYPE="Reset" VALUE="<fmt:message key="reset"/> &raquo;"

NAME="btnReset" ACCESSKEY="R">

</TD>

<TD ALIGN="right" VALIGN="top" WIDTH="33%"><INPUT CLASS="primButton" STYLE="cursor:hand;" TYPE="Submit"

VALUE="<fmt:message key="selectSomething"/> &raquo;" NAME="btnCompare" ACCESSKEY="S">

</TD>

</TR>

</TABLE>

</html:form>

 
I'm trying to call the button with:
 
 clickButton( "ComparisonStep1Back" );
 
This does not take me back to the prior page.  I believe it's staying on the same page.  Are there issues with certain _javascript_ statements?  Does this have more to do with HttpUnit than JWebUnit?
 
Any help appreciated,
Michael

Reply via email to