Preview Window The window.open can be set to create an new browser instance, open in the existing browers, open in a parent frame, or open in a target frame and display HTML within the instance. The window.open method returns a var for which the developer can access its document method to write html string fragments to the brower. In this example,
<script language=javascript> var sHTML; sHTML="<h3>Hello World</h3>"; var win = window.open(",",'_blank', 'toolbar=yes,menubar=yes,titlebar=yes,status=yes,resizeable=yes,scrollbars=yes',true); win.document.write("" + sHTML + ""); </script>