Clears the current document using HTMLDocument.open immediately followed by close.