File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 " />
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6+ < title > Form Result</ title >
7+ < link rel ="stylesheet " href ="style.css " />
8+ </ head >
9+
10+ < body >
11+ < main >
12+ < h1 > Your Selection</ h1 >
13+
14+ < p > < strong > Name:</ strong > < span id ="name "> </ span > </ p >
15+ < p > < strong > Colour:</ strong > < span id ="colour "> </ span > </ p >
16+ < p > < strong > Size:</ strong > < span id ="size "> </ span > </ p >
17+
18+ < a href ="index.html "> Go back</ a >
19+ </ main >
20+
21+ < script >
22+ const params = new URLSearchParams ( window . location . search ) ;
23+ document . getElementById ( "name" ) . textContent = params . get ( "name" ) ;
24+ document . getElementById ( "colour" ) . textContent = params . get ( "colour" ) ;
25+ document . getElementById ( "size" ) . textContent = params . get ( "size" ) ;
26+ </ script >
27+ </ body >
28+ </ html >
You can’t perform that action at this time.
0 commit comments