how to prevent parameters from being sent javascript code example Example: javascript prevent form submit <form name="foo" onsubmit="return false">