Recently writing some code i cross over a problem using document.write:
The code
<input name="e2" size="20" type="text">
<select name="e1">
<option>....... ............... ............... ....
<option>Optio n1
</select>
<input src="picture.gi f" onclick="I()" align="right" type="image" width="60"
height="49"></p>
<script type="text/javascript">
function I()
{
if(e2.value=="" )
document.write( "Please input some words")
else if (e1.selectedInd ex==0)
document.write( "please choose some option")
}
The problem:
Is there a way to write this inside a div without using the innerHTML
command , or to fix the structure above, the current one dissapears using
document write , Thank you for all the atencion given to the subject.