V
V
Vampre2018-09-21 13:01:53
JavaScript
Vampre, 2018-09-21 13:01:53

How to track a click on an svg added via an object?

I add svg to the page through object, the result is the following:
5ba4c1467d9a8981567621.png
How can I now track a click on an element, for example? Preferably using jQuery

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Destell, 2018-09-21
@Destell

<svg>
    <script>
         Код
    </script>
</svg>

Try this way (inserting the code at the end of the svg and adding the image through the object) or inserting the svg directly into the html.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question