Using the .NET Windows Forms WebBrowser control to show the preview of a page, I\'m using the following approach described in this SO posting to disable all links on the pag
using jquery i would do this
$('form').submit(function(event){event.preventDefault();});
with jquery you normally dont use .attr(...) to bind event listeners instead you should use the helper methods, or .bind(...)
.attr(...)
.bind(...)
here its the complete reference: jQuery events