Hey i am wondering if the following is possible:
There is a single page website for example index.html and a varibale for example MyVariable = 123; within the js script of this index.html. The URL example.com will show the index.html
Now is it possible to share a link that looks like example.com/1234 or something similar which then shows the normal index.html file but it changed the variable MyVariable to "1234" inside the js script?
Thank you! :)
myVariablewas not assigned as a local variable to it's function, then you could modify it after page load, but not before, because you would have to modify the file contents.