0

I have a simple static HTML that prints the value of the param in queryString:

<html>
    <script type="text/javascript">
        const urlParams = new URLSearchParams(window.location.search);
        document.write(urlParams.get('param'));
    </script>
    <body></body>
</html>

http://static-page.com?param=valueParam Prints: "valueParam"

Question: There is a way to do the same with static html and path param?

Like: http://static-page.com/valueParam

Victor Soares
  • 757
  • 1
  • 8
  • 34

0 Answers0