Why onclientclick do a postback ?

Posted by user284523 on Stack Overflow See other posts from Stack Overflow or by user284523
Published on 2010-03-21T13:18:21Z Indexed on 2010/03/21 13:21 UTC
Read the original article Hit count: 490

Filed under:

I have an asp button with no onclick event but only onclientclick. This call a javascript function in a iframe in which a video is playing;

each time I click the javascript function is called but also the video restart which means the page is reloaded.

How to prevent this ?

© Stack Overflow or respective owner

Related posts about ASP.NET