summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/cookies/resources/navigate.html
blob: 077efba5699315040461a3b41cb86d64d539551a (plain)
1
2
3
4
5
6
7
8
<!DOCTYPE html>
<meta charset="utf-8">
<script>
  // Navigates the window to a location specified via URL query param.
  const params = new URLSearchParams(window.location.search);
  const loc = params.get('location');
  window.location = loc;
</script>