<object data="svgimage.svg" type="image/svg+xml" id="alphasvg" ></object> <script> var a = document.getElementById("alphasvg"); a.addEventListener("load",function(){ var svgDoc = a.contentDocument; var svgId = $(svgDoc).find("path_id"); alert(svgId); //you will get all the id inside svg image },false); </script>