windows.location.href not working on Firefox3

前端 未结 17 1114
囚心锁ツ
囚心锁ツ 2020-11-30 07:31

We have a JavaScript function named \"move\" which does just \"windows.location.href = any given anchor\".
This function works on IE, Opera and Safari, but so

17条回答
  •  一生所求
    2020-11-30 08:32

    window.location.assign("link to next page") should work in both (chrome and firefox) browsers.

    window.location.assign("link to next page")

提交回复
热议问题