function chek()
{
if(myform.username.value.length==3)
{
alert( " your msg is too short! ");
}
}
-->
</script>
我只是会写alert,我想不用alert。直接在输入框旁出现一个提示,而不是探一个框?请问怎么写?
------解决方案--------------------
var span = document.createElement( "SPAN ");
myform.username.parentNode.appendChild(span);
span.innerHTML = "your msg is too short! ";