Transfer to another page JavaScript


Faced a problem. Previously, I used the Hosting from Yandex, as it was enough HTML. However, the needs rose and had to move to hosting, where PHP is supported. On the old page, I placed the script so that old users did not lose:


was very pleased when I noticed the result in Opera. Immediately disappointed when I learned that on the Mozila Firefox the script does not work and does not move anywhere …

Tell me, please solve this problem.

Answer 1, Authority 100%

Three options (JS and HTML):

location.href = '[URL]';  

[URL] – the desired address.