Skip to content

Truly independent web browser

385 B
Raw Blame
<!doctype html>
<script>
  navigation.onnavigate = e => {
    if (e.destination.url.includes("#test")) {
      window.parent.postMessage({
        type: "result",
        sourceElementIsNull: e.sourceElement === null,
        sourceElementName: e.sourceElement ? e.sourceElement.tagName : "null"
      }, "*");
    }
  };
  window.parent.postMessage({ type: "ready" }, "*");
</script>