[Javascript] document.write from a global variable.
Cutter
java.script at seacrets.com
Sat Sep 4 15:26:29 CDT 2004
How do ya figure? I use document write often in pages, placing my script
tags right where that content may go, and it works fine for me...
Cutter
Troy III Ajnej wrote:
>
>
> ...
>
>> <script type="text/javascript">
>> document.write(color1);
>> </script>
>> <br />
>> <script type="text/javascript">
>> document.write(size1);
>> </script>
>> <br />
>> <script type="text/javascript">
>> document.write(color2);
>> </script>
>> <br />
>> <script type="text/javascript">
>> document.write(size2);
>> </script>
>> </body>
>
> Not sure what you're really up to with that but I'm sure that the
> 'document.write(size1)' will allways get written first and alone,
> (color2; size2; etc., will never get that chance). The first
> document.write command will overwrite the page along with the script
> so the following document write, will get wiped before it ever get
> called.
>
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list