[Javascript] document.write from a global variable.
Troy III Ajnej
trojani2000 at hotmail.com
Sat Sep 4 10:01:50 CDT 2004
...
><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
More information about the Javascript
mailing list