Dave's Brain

Browse - Programming Tips - How do I open a new plain text page?

Date: 2009jun15
Language: javaScript

Q.  How do I open a new plain text page?

A.

function newTextWindow() { var win = window.open(); win.document.open('text/plain'); win.document.write('hello'); win.document.close(); }

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.