Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<title>not restricted</title>
</head>
<body>
<a id="link">click me</a>
<script>
const documentURL = URL.parse(document.URL);
let frameHost = new URLSearchParams(documentURL.search).get("host");
if (!frameHost) {
frameHost = documentURL.host;
}
const link = document.getElementById("link");
</script>
</body>
</html>