I want to incude a certain div from another url into my site : i have this

      <div> 
            <object type="text/html" data="https://www.urlIWantTheDivFrom.com"
    width="800px" height="600px" >
            </object>
      </div>

However this gives me the whole webpage. I want to copy a certain div. I also tried some js however i cannot find out how to copy the exact div as well

    document.getElementById("div").innerHTML='<object type="text/html" data="https://www.urlIWantTheDivFrom.com" ></object>';