【使い方】
string str =
"<script language=\"JavaScript\"><!--{CustomPage}\n"
+ " function OnRegExpCheack(txtBox, regExpPattern, regExpType, msg) {\n"
+ " rObj = new RegExp(regExpPattern,regExpType);\n"
+ " if ( txtBox.value.length>0 && !txtBox.value.match(rObj)){\n"
+ " if ( msg != null && msg.length>0 ){\n"
+ " alert(msg);\n"
+ " }\n"
+ " txtBox.focus();\n"
+ " txtBox.select();\n"
+ " }\n"
+ " }\n"
+ " --></script>\n";
|