Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<svg></svg>
<script>
const params = new URLSearchParams(location.search);
link.setAttribute("href", "a-referrerpolicy-navigation-target.html");
for (const name of ["referrerpolicy", "rel"]) {
if (params.has(name))
link.setAttribute(name, params.get(name));
}
document.querySelector("svg").appendChild(link);
link.dispatchEvent(new MouseEvent("click", {
view: window,
bubbles: true,
cancelable: true
}));
</script>