Article View: fj.lang.javascript
Article #172[Q]$BH=Dj(B
From: Hideto Shimada
Date: Wed, 08 Oct 1997 00:00
Date: Wed, 08 Oct 1997 00:00
30 lines
1088 bytes
1088 bytes
$BEhED$H?=$7$^$9!#(B
$B0JA0$b0lEY;G$C$?$N$G$9$,?t;z$+$"$k$+$J$$$+$G%a%C%;!<%8$rJQ$($?$$(B
$B$N$G$9$,$&$^$/F0$-$^$;$s!#(B
$B0J2<$K%9%/%j%W%H$r:\$;$^$9$N$G$I$J$?$+65$($F2<$5$$!#(B
<script language=javascript>
function check(arg){
if ( isNaN (parseInt (arg)) && isNaN (parseFloat (arg)) ){
alert("message1");
}
else{
alert("message2");
}
}
</script>
--html--
<form method="post" name="form1" onSubmit="return check(this)" action="/cgi-bin/test.cgi">
<input type=text name=namber size=10>
$BF|$^$($N>pJs$r(B
<input type=submit value="$B%5%V%_%C%H(B">
<input type=reset value="$B%j%;%C%H(B">
</form>
====
Hideto Shimada
hideto@shimada-precision.co.jp
Technical Details
Message-ID:
<61fcdc$4317@green.obicnet.ne.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 103a72,e2933ecab703be55,start X-Google-Attributes: gid103a72,public From: hideto@shimada-precision.co.jp (Hideto Shimada) Subject: [Q]$BH=Dj(B Date: 1997/10/08 Message-ID: <61fcdc$4317@green.obicnet.ne.jp> X-Deja-AN: 278745575 Organization: Another Netscape News Server User Newsgroups: fj.lang.javascript