1 <html> 2 <head> 3 <title>Test page</title> 4 </head> 5 <body> 6 <div style="text-align: center;margin:10em;"> 7 <h3 id="the_string"> Nothing to echo </h3> 8 </div> 9 <script> 10 var h = document.getElementById('the_string'); 11 h.innerText = decodeURIComponent(document.location.search.substring(1)); 12 </script> 13 </body> 14 </html> 15