How can I get window.location.hash on server side?

Is it possible to get window.location.hashonly on server code?

http://mysite.com/#here

I want to receive here

+3
source share
2 answers

You will need to use AJAX to submit, as it is not directly accessible from the server.

0
source

Not without Ajax, but if you can use the query string , you can do this:

http://mysite.com/?here

... and "here" will be available on the server side. From JavasSript, you can access it using window.location.search.

0
source

Source: https://habr.com/ru/post/1758442/


All Articles