Demoso <> writes:
Hi
What's wrong with this line:
document.write('<input style="width: 260px;" type="button"
id="button2" onmouseover="mover(\'button2\',\'green\');"
onmouseout="mover(\'button2\',color2);" value ='+txt6+'
onClick="SetCookie(\'modem\');this.value=txt7";>')
txt6 is 4 words long, but only the first word in the string will show.
You must put quotes around attribute values that contain spaces. You
should put them around all attribute values. In your case, if txt6
is "Some random four words", then you write this HTML:
<input .... value =Some random four words onClick= ... >
The browser has no way of knowing that "random" isn't a value-less
attribute.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'