SVG:Script: Difference between revisions

Jump to navigation Jump to search
No change in size ,  18 September 2005
m
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.
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.


2

edits

Navigation menu