how to decable form submit behaviour in js code example Example: javascript prevent form submit <form name="foo" onsubmit="return false">