Hi All,
I have a small problem.. I have a button named 'Make Changes' on which I just want to use the browser back functionality. But I am not able to do it. The button is:
<html:cancel onClic="fnGoBac()" > Make Changes </html:cancel >
and the javascript code is:
function fnGoBack()
{
alet("In fnGoBack")
histori.go(-1)
}
(Note: history,onClick and alert are misspelled as histori,onClic and alet so that I can post this on this site.)
Onclick the alert appears but instead of going back to previous page, I get the page as defined by the action associated with this page.
However if I change the button code to normal html code (as shown below), it works fine.. but for consistency sake, I want to follow all sturts html
tags..
<input type="button" value="Make Changes" onclic="fnGoBack()" >
Please let me know how can I achieve this by using
Struts HTML:Cancel or some other tag..