[javascript] 특수문자 입력 금지

//--- 특수문자 입력 금지
var mikExp = /[$\\@\\\#%\^\&\*\(\)\[\]\+\_\{\}\`\~\=\|]/;

function UpdateOrderDetail(){
var f = document.goods_main;

if(f.webfile.value == "" && f.webtext.value == "" && f.appfile.value == "" && f.apptext.value == "" && f.old_webfile.value == "" && f.old_appfile.value == "" )
{
// alert("내용이 없습니다.");
// f.webfile.focus();
// return false;
}

if(f.apptext.value.search(mikExp) == -1) {
//alert("짝짝짝");
//return false;
}else {
alert("다음과 같은 특수문자는 \n\n @ $ % ^ & * # ( ) [ ] { + } ` ~ = | \n\n 입력하시면 안됩니다.");
f.apptext.select();
//f.apptext.focus();
return false;
}

f.action.value = "facture_update";
f.submit();

}
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2008/01/23 20:12 2008/01/23 20:12
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/2941

Trackback URL : http://tcbs17.cafe24.com/tc/trackback/2941

« Previous : 1 : ... 3480 : 3481 : 3482 : 3483 : 3484 : 3485 : 3486 : 3487 : 3488 : ... 6391 : Next »

블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2024/05   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Statistics Graph

Site Stats

Total hits:
188628
Today:
97
Yesterday:
717