2
edits
| Line 1: | Line 1: | ||
| == preventing default behaviour in event code == | == preventing default behaviour in event code == | ||
| When writing drag and drop code, you will realize that text on the page gets accidently selected while dragging. or if you want to use the backspace key in your code, you want to prevent the browser from going back to the last page. | |||
| in these cases, one can use the evt.preventDefault() method. | in these cases, one can use the evt.preventDefault() method. | ||
edits