diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,11 @@ <title>Recursion</title> <h1>recursion</h1> -<h3>Note: This site works best in Firefox</h3> <h2>Noun. Pronounciation: <i>ri-ker-zhen</i></h2> <h2>Definition of recursion:</h2> -<iframe src="recursion.html" width=90% height=90%></iframe> +<iframe src="recursion.html" width=90% height=90%></iframe> +<!-- https://www.bryanbraun.com/2021/03/24/infinitely-nested-iframes/ --> +<script> +const iframeEl = document.querySelector('iframe'); +const nextQueryValue = !location.search ? 1 : Number(location.search.split("?").pop()) + 1; +iframeEl.src = `index.html?${nextQueryValue}`; +</script> |