Answer the question
In order to leave comments, you need to log in
How to use regexps in javascript?
There is a url like "site1.com/img/pic1.jpg$param=blablabla"
You need to redirect to "site2.com/img/pic1.jpg"
Tell me what else url = url.replace('site1.com', 'site2.com');
you need?
Answer the question
In order to leave comments, you need to log in
Read about window.location.
here, for example: javascript.ru/window-location
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question