View Single Post
Old Dec 14th, 2005, 11:24 AM   #2
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Hopefully it's as simple as tackling the root of the problem - in your onclick method for the button, simply make the method called return false. That will stop any further action taking place and therefore stop the form submitting. With that said, a button shouldn't be submitting it's a submit button. You are using <input type="button" ...> instead of <button>, right?
This should be in the JavaScript forum, by the way.
Cerulean is offline   Reply With Quote