Setting the cancel button to: form[0][-1] [1].append(INPUT(_type="button",_value="Cancel",_onclick='javascript:history.go(-1);'))
at least gives the user a way to cancel the function, not the way I wanted it, but it's better than getting an error. Annet