JSFiddle - React, Tailwind, and code Playground
JavaScript
var w = window.open('http://www.google.com');
console.log($(w.document).contents());
$('body').html($('*', w.document.documentElement).contents().html());
//alert($('*', w.document.documentElement).contents());