 |
|
|  |
|
 |
15년 전 |
<script language='javascript'>
function trim(str){
str = str.replace(/^\s*/,'').replace(/\s*$/, '');
return str; //변환한 스트링을 리턴.
}
var txt= document.form.txt.value;
txt= trim(txt); //트림한다.
document.form.txt.value = txt;
if(document.form.writer.value == ""){
alert("내용을를 기입해주세요.");
document.form.txt.focus();
}
</script>
|
|
추천 : 731 |
추천
목록
|
|
|  |
|