Here a version that works for cross origin requests.
<iframe hidden name=xhtmz onload="onmessage=x=>document.querySelector(x.data.target).innerHTML=x.data.content"></iframe>
but website you are requesting has to embed the below script tag. <u id=t>just some other text</u>
<script>
parent.postMessage({
target:location.hash,
content:b.outerHTML
},'*')
</script>
You would still set the DOM destination on the main page. <a href="https://xorigin.com#view" target=xhtmz>dog</a>
<div id=view></div>