We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed1730 commit 8134bceCopy full SHA for 8134bce
index.html
@@ -40,7 +40,7 @@
40
<![endif]-->
41
<div>
42
<h1>Quotation Request</h1>
43
- <h2>Demo Insurer Quotation Form for Lucy</h2>
+ <h2>Demo Insurer Quotation Form: <span id="demoName"></span></h2>
44
</div>
45
46
<hr />
@@ -323,4 +323,6 @@ <h1 class="PageTitle">Cyber<span class="Multiple"></span></h1>
323
324
</body>
325
326
+<script src="main.js"></script>
327
+
328
</html>
main.js
@@ -0,0 +1,8 @@
1
+// our url is ?name=Test
2
3
+let searchParams = new URLSearchParams(window.location.search)
4
+if(searchParams.has('name')) {
5
+ let param = searchParams.get('name')
6
+ console.log("name parameter is:" + param);
7
+ document.getElementById('demoName').textContent = param;
8
+}
0 commit comments