search

Home  >  Q&A  >  body text

javascript - I remember that there is a way in js to open a window to replace the current page, and you cannot click the return button. It is similar to the payment page (safe). I have been looking for it for a long time today and couldn't find it. Could you please tell me?

RT

window.open(url, '_self')
window.open(url, 'custom')
window.location.replace (url)

滿天的星座滿天的星座2831 days ago710

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-16 13:23:48

    The replace() method does not generate a new record in the History object. When using this method, the new URL will overwrite the current record in the History object.

    HTML DOM replace() method

    reply
    0
  • Cancelreply