JSFiddle - React, Tailwind, and code Playground

HTML

<!-- <button onclick="test()">Test</button> -->
<iframe src="/txmdL/2/show/"></iframe>

CSS

iframe,body,html {
    width: 100%;
    height: 99%;
    border: none;
}

JavaScript

function getClosestTop(){
    var frame = window;
    try {
        while (frame.parent.document !== frame.document) frame = frame.parent;
    } catch(e){}
    return frame;
}
function test(){
    alert(getClosestTop().location.href)
}