button and post back

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
You can't have client side code invoke server-side code without a post back
or a call to a new server page to process. There's just no way around this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top