K
K
kevus2018-06-20 00:03:41
JavaScript
kevus, 2018-06-20 00:03:41

What function can make such a redirect (JS)?

Hello.
Here it would be desirable to find a script which allows to do a redirect in such format.
site.ru/some.js?site.com That is

, when accessing a script with a special parameter, there is a redirection.
Maybe there is a ready-made version somewhere?

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
napa3um, 2018-06-20
@napa3um

location = location.search.substring(1)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question