I wanted to add external SVG file (based on XML) into HTML page and the SVG loaded into the HTML page with the help of the <iframe>
, <object>
, <img>
, and <embed>
tags, but when I went to access the elements of the SVG in the javascript, it's not working. I can't access the internal element of any the above.
Asked
Active
Viewed 56 times
1

Ravindra Gupta
- 1,256
- 12
- 42
-
Could you provide a sample of code? for the JS part for instance? – lovethebomb Oct 18 '17 at 11:40