document.location = 'data:text/html,' + encodeURIComponent('<h1>Hello, World!</h1>');
document.location = 'data:text/html;base64,' + btoa('<h1>Hello, World!</h1>');