In a client side script (JavaScript, HTML etc.) how do I make the page redirect to a link specified in the address bar when a function had been called.
Example: Address bar says: Example.com/(code containing redirect link)
When a certain function is called, for example, it will redirect to a page specified in the "(code containing redirect link)"
Here is a question similar (it isn't client side, like what I need): how to get the value from address bar entered by client?
Thanks in advance.