Home > Blockchain >  How to use a question mark in url?
How to use a question mark in url?

Time:12-14

Here's my question: How to use a question mark in url ? For a school project I need to use "?version=1", "?version=2" and "?version=3" in my url for 3 different versions of a website but after some researches, I found that the ? is used to pass a query string and use it in server-side but I haven't found more informations or doc. My problem is that we don't have server for the project and I would know if I can still the question mark and if it's possible to use it in Javascript in order to display specific elements on the page according to the version of the website I'm using. Thanks !

CodePudding user response:

You can still use the query string (?version=1) without having access to the server. Just capture the value using the method Austin linked and go from there.

  • Related