Hi Annet, "The input type button specifies a push button for use with client- side scripting. The VALUE attribute gives the text label of the button. The ONCLICK attribute is typically used to define the action taken when the button is activated."
So no submit as pointed out by Mathew. Also, document.location although supported is deprecated, window.location is preferred (since document.URL is read only, see http://docstore.mik.ua/orelly/web/jscript/refp_88.html). Denes. On Jan 14, 10:41 am, annet <[email protected]> wrote: > 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.

