<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023815" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023815</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-mulitline-documentwrite#comment-1146126</link>
    <description> &lt;p&gt;A tricky way to do it would be to store your code in another page element and access it via DOM. Perhaps use a hidden textarea (CSS) to contain your code block, and use document.getElementById(&quot;myhiddentextarea&quot;).value to grab the block. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; I am assuming, of course, that your Javascript code is embedded in your page. And this is untested, but may be worth a shot if you have no alternatives.&lt;/p&gt;
 </description>
     <pubDate>Fri, 20 Feb 2004 22:14:43 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1146126 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I see what you&#039;re saying</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-mulitline-documentwrite#comment-1146118</link>
    <description> &lt;p&gt;thanks for the info.&lt;/p&gt;
&lt;p&gt;I&#039;ll give that a try.&lt;/p&gt;
 </description>
     <pubDate>Fri, 20 Feb 2004 21:38:47 +0000</pubDate>
 <dc:creator>cat_mother_</dc:creator>
 <guid isPermaLink="false">comment 1146118 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-mulitline-documentwrite#comment-1146114</link>
    <description> &lt;p&gt;like i said you can but it will be on a terribly long line and it is not a good coding practice that&#039;s why i set a variable with all the text in it and write it after you could also read it from a text file and then write it to the document&lt;/p&gt;
 </description>
     <pubDate>Fri, 20 Feb 2004 21:28:47 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1146114 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Not trying to duplicate Perl behavior, per se</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-mulitline-documentwrite#comment-1146109</link>
    <description> &lt;p&gt;I&#039;m asking if there&#039;s a way to include multiple lines of code inside document.write().  For example, say I have an html page.  The coding of the html page is about 50 lines of code.  I want all of this code inside the document.write() methods, whichout having to write document.write() 50 times.&lt;/p&gt;
&lt;p&gt;Seems like there isn&#039;t a way to do that, but I thought that I&#039;d ask!&lt;/p&gt;
 </description>
     <pubDate>Fri, 20 Feb 2004 21:14:35 +0000</pubDate>
 <dc:creator>cat_mother_</dc:creator>
 <guid isPermaLink="false">comment 1146109 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-mulitline-documentwrite#comment-1146105</link>
    <description> &lt;p&gt;by putting &quot;\n&quot; in your string it will give you a line return in source code. no there is no way in javascript to duplicate perl behavior. usualy i do it like this&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script&amp;amp;gt;&lt;br /&gt;myvar = &amp;quot;&amp;lt;div&amp;gt;this is line 1 of some test text\n&amp;quot;;&lt;br /&gt;myvar+=&amp;quot;this is still line 2&amp;lt;/div&amp;gt;&amp;quot;;&lt;br /&gt;document.write(myvar);&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Fri, 20 Feb 2004 20:57:15 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1146105 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Re:</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-mulitline-documentwrite#comment-1146103</link>
    <description> &lt;p&gt;The reason that I have to do it this way is a long story -- definitly not my choice of methods.&lt;/p&gt;
&lt;p&gt;Thanks, though!&lt;/p&gt;
 </description>
     <pubDate>Fri, 20 Feb 2004 20:46:07 +0000</pubDate>
 <dc:creator>cat_mother_</dc:creator>
 <guid isPermaLink="false">comment 1146103 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-mulitline-documentwrite#comment-1146100</link>
    <description> &lt;p&gt;Not that I know of. If you need to write that much, perhaps it would be better to use something other than JavaScript to do it?&lt;/p&gt;
 </description>
     <pubDate>Fri, 20 Feb 2004 20:36:09 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1146100 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
