button and post back

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
 
S

Scott M.

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top