Description
i've started using the buttonlinkrenderer and have noticed that a neat trick i use with direct link does not work with buttonlinkrenderer.
to have the user confirm their action before submitting a request, i add an onclick event hander ie: onclick="return confirm('sure?');" this would be called before the actual direct link href was called, and returning false would cancel the request altogether.
as buttonlinkrenderer utilises the onclick attribute of the button, this trick is not available with a buttonlinkrenderer.
is it possible to have buttonlinkrenderer append to any existing onclick handler? so instead of:
onclick="window.location='/.....'"
can it render:
onclick="myscript;window.location='/.....'" where myscript is my onclick hander.
thx. paul.