Re: JS write of new document
by "Cyanide _7" <leo7278(at)hotmail.com>
|
Date: |
Sun, 09 Jul 2000 18:04:56 CDT |
To: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
when writing to a document in js, you would send any and all HTML that you
would have typed in yourself had you written the new document in a file. so
yes you would include the <html> tags and yes you can write a <title> tag to
it as well. the only characters i think you'd need to worry about escaping
are quotes and the escape charater itself. - Cyanide_7
>I'd like to take the values of a form in one window and use them as part of
>the contents of another window.
>
>Questions:
>
>1. Is there a javascript technique that enables me to write an entire block
>of text like there is in perl say [ie. so I don't have to do
>'document.write
>..' for every line of the document]
>
>2. I'm uncertain about whether to put the <html> tag as part of the new
>documents document.write build process. And what about building the new
>document with a javascript section. And are there any characters that I
>have
>to escape [e.g comment tags] or use another technique to include them.
>
>3. What about the window title bar. Will a document.write of a
><title></title tag work.
>
>Thanks,
>
>John
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA