Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 12, 2012 07:39 PM by sushanth009
Member
635 Points
368 Posts
Jun 12, 2012 07:36 PM|LINK
when i use normal input html button it works ok ..but when i use html image button when i click it cause browser reload so how can i avoid that behaviour HTML Image Button <input type='image' src='myimage.gif' height='15px' width='15px' border='0' onclick="" /> HTML Button <input id="Button2" type="button" value="button" onclick=" " />
Contributor
6243 Points
1168 Posts
Jun 12, 2012 07:39 PM|LINK
Try this .. It will stop the Postback
<input type='image' src='myimage.gif' height='15px' width='15px' border='0' onclick="javascript:return false;" />
AhmedHussein...
Member
635 Points
368 Posts
Avoid HTML Image Button Browser Reload
Jun 12, 2012 07:36 PM|LINK
when i use normal input html button it works ok ..but when i use html image button when i click it cause browser reload so how can i avoid that behaviour
HTML Image Button
<input type='image' src='myimage.gif' height='15px' width='15px' border='0' onclick="" />
HTML Button
<input id="Button2" type="button" value="button" onclick=" " />
sushanth009
Contributor
6243 Points
1168 Posts
Re: Avoid HTML Image Button Browser Reload
Jun 12, 2012 07:39 PM|LINK
Try this .. It will stop the Postback