Link to home
Start Free TrialLog in
Avatar of rajeev_23
rajeev_23

asked on

To stop page Refresh on click of dynamic Button

i have a dynamic(run time created) Button(creating on page load event),  but click on it causes page refresh,
I want no refresh,
any expert plz help
Avatar of Obadiah Christopher
Obadiah Christopher
Flag of India image

What is the button used for then?

once the button is created u could use this...

btn1.attributes.add("onclick","javascript:return false;");
ASKER CERTIFIED SOLUTION
Avatar of Kimpzor
Kimpzor

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rajeev_23
rajeev_23

ASKER

This Solution really did work for me Thanks kimpzor