Created
April 5, 2023 15:25
-
-
Save bdelacretaz/4284649f226a8cf88768c52c2d4a722f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<p>Load this page with <code>?ok=yes+it+works</code> to test it.</p> | |
<p>Search parameters: <b id="results"/></p> | |
<script> | |
const p = new URLSearchParams(window.location.search); | |
document.querySelector('#results').textContent = p.get('ok'); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment