https://www.adonaimedrado.pro.br/wiki/index.php?title=JavaScript:_Exemplo_de_uso_do_while&feed=atom&action=history JavaScript: Exemplo de uso do while - Revision history 2024-03-29T08:05:02Z Revision history for this page on the wiki MediaWiki 1.26.2 https://www.adonaimedrado.pro.br/wiki/index.php?title=JavaScript:_Exemplo_de_uso_do_while&diff=312&oldid=prev Adonaimedrado at 22:32, 12 September 2008 2008-09-12T22:32:31Z <p></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;' lang='en'> <td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 22:32, 12 September 2008</td> </tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td> <td colspan="2" class="diff-lineno">Line 1:</td></tr> <tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>&lt;code lang=&quot;<del class="diffchange diffchange-inline">html</del>&quot;&gt;</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>&lt;code lang=&quot;<ins class="diffchange diffchange-inline">javascript</ins>&quot;&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;html&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;html&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> &lt;head&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> &lt;head&gt;</div></td></tr> </table> Adonaimedrado https://www.adonaimedrado.pro.br/wiki/index.php?title=JavaScript:_Exemplo_de_uso_do_while&diff=310&oldid=prev Adonaimedrado: New page: <code lang="html"> <html> <head> <title>Minha Página</title> </head> <body> <script> var i = 0; while(i<10) { document.write("<input type=\"text\" id=\"txtTeste" + i + "\""... 2008-09-12T22:28:41Z <p>New page: &lt;code lang=&quot;html&quot;&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Minha Página&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;script&gt; var i = 0; while(i&lt;10) { document.write(&quot;&lt;input type=\&quot;text\&quot; id=\&quot;txtTeste&quot; + i + &quot;\&quot;&quot;...</p> <p><b>New page</b></p><div>&lt;code lang=&quot;html&quot;&gt;<br /> &lt;html&gt;<br /> &lt;head&gt;<br /> &lt;title&gt;Minha Página&lt;/title&gt;<br /> &lt;/head&gt;<br /> &lt;body&gt;<br /> &lt;script&gt;<br /> var i = 0;<br /> while(i&lt;10)<br /> {<br /> document.write(&quot;&lt;input type=\&quot;text\&quot; id=\&quot;txtTeste&quot; + i + &quot;\&quot;&quot; + &quot;&gt;&quot;);<br /> document.write(&quot;&lt;input type=\&quot;button\&quot; id=\&quot;btOK&quot; + i + &quot;\&quot;&quot; + &quot; value=\&quot;OK\&quot;&gt;&quot;);<br /> document.write(&quot;&lt;br /&gt;&quot;);<br /> msg = prompt(&quot;Digite seu texto.&quot;,&quot;Seu texto&quot;);<br /> document.getElementById(&quot;txtTeste&quot; + i).value = msg;<br /> i++;<br /> }<br /> &lt;/script&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> &lt;/code&gt;</div> Adonaimedrado