Subscribe to our mailing list to get the latest updates straight in your inbox.
The replace() method replaces the current document with a new one: