javascript event preventDefault( )
@March 15, 2008, 1:22 a.m.
preventDefault( ) | Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2 |
|
|
Instructs the current event to bypass the normal operation it performs on the node. Once set, the mode cannot be undone for the current event. The following Netscape 6 event listener function for an onkeypress event allows only numbers to be entered into a text field:
function numsOnly(evt) {
if (evt.charCode< 48 || evt.charCode > 57) {
evt.preventDefault( );
}
}
|
|
This method is the equivalent of assigning false to the IE event.returnValue property, or having an event handler evaluate to return false. |
|
Parameters | |
None. |
|
Returned Value | |
None. |
Permanent URL:
http://javascript.gakaa.com/event-preventdefault-4-0-5-.aspx
cheap amoxil tablets - <a href="https://combamoxi.com/valsartan/">buy valsartan 80mg generic</a> order ipratropium 100mcg sale
Hhubjd
- 58 hours
accutane cost - <a href="https://isotadron.com/dexamethasone/">buy dexamethasone 0,5 mg pill</a> where to buy linezolid without a prescription
Gktxlb
- 3 days
order deltasone pill - <a href="https://starlisone.com/nateglinide/">order starlix 120 mg online</a> capoten 25 mg drug
Tureoq
- 2 weeks
Powered by Linode.