Re: button and post back



Add onClick="javascript here" to the button.


"bbdobuddy" <bbdobuddy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:79E4D8B9-323B-4437-AF2E-38EE42F2CE60@xxxxxxxxxxxxxxxx
> Hi,
>
> Is there a way that when a button is clicked that it will run code without
> doing a post back?
>
> I have a button that when it is clicked a message box pops up from the
> javascript event onbeforeunload.
>
> However, I would like to be able to click the button and run some code
> without the message box poping up
>
> Any help would be appreciated
> Brian


.