I have a form containing two buttons, one to update data and one to
close the window:

{{=INPUT(_type='button',_value='Update
data',_onclick=URL(r=request,f='update_form',args=[company[0].id]))}}
{{=INPUT(_type='button',_value='Close window',_onclick='closeWin()')}}

The second button works, the first button doesn't. When I replace the
code for the first button with:

<button
onclick="document.location='{{=URL(r=request,f='update_form',args=[company[0].id])}}';">update
gegevens</button>

The first button works as well, however, I don't understand why? I
hope one of you can provide me with an explanation.


Kind regards,

Annet.

Reply via email to