RMCGEMS

The replace() method replaces the current document with a new one: