{"json_modified": "2016-03-28T07:51:36.341431", "uuid": "d3e0fdde-294c-4452-9d81-5b88c96012cd", "title": "Scripting", "url": "/en-US/docs/Web/SVG/Scripting", "tags": ["SVG", "preventing", "behavior", "setProperty", "Scripting", "eventListeners", "default"], "translations": [{"uuid": "93a3d18a-6782-462e-82c6-d124d10efb0e", "title": "\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0", "url": "/ja/docs/Web/SVG/Scripting", "tags": ["SVG"], "summary": "", "localization_tags": [], "locale": "ja", "last_edit": "2013-06-08T16:21:48", "review_tags": []}], "modified": "2015-05-13T22:01:01", "label": "Scripting", "localization_tags": [], "locale": "en-US", "id": 2402, "last_edit": "2015-05-13T22:00:59", "summary": "One can override default browser behaviors with the evt.preventDefault( ) method, add eventListeners to objects with the syntax\u00a0element.addEventListener(event, function, useCapture), and set element properties with syntax svgElement.style.setProperty(\"fill-opacity\", \"0.0\", \"\"). Note the existence of all three arguments setting properties.", "sections": [{"id": "Preventing_default_behavior_in_event_code", "title": "Preventing default behavior in event code"}, {"id": "Using_eventListeners_with_objects", "title": "Using "}, {"id": "Inter-document_scripting:_referencing_embedded_SVG", "title": "Inter-document scripting: referencing embedded SVG"}, {"id": "Inter-document_scripting:_calling_JavaScript_functions", "title": "Inter-document scripting: calling JavaScript functions"}, {"id": "setProperty_has_three_parameters", "title": null}, {"id": "Links", "title": "Links"}], "slug": "Web/SVG/Scripting", "review_tags": []}