<!DOCTYPE html>
<style>
    body {
        margin: 0;
    }

    div {
        width: 100vw;
        height: 100vh;
    }
</style>
<div id="target">Touch this element.</div>
<script>
document.getElementById("target").addEventListener("touchend", () => parent.postMessage("touchend", "*"));
</script>
