<INPUT     dataType="18" onclick="alert(this.dataType)">
如果你想传递给过程或函数,直接写就是了。

解决方案 »

  1.   

    to:myvicy(很抱歉的问你,我该往那边走?)
    不是想传递给过程或函数,我是想取得该值后进行判断的
      

  2.   

    <INPUT     dataType="18" onclick="if(this.dataType==18)alert('a')">
    自己动动脑子呀~!
      

  3.   

    to:myvicy(很抱歉的问你,我该往那边走?) 
    请教您如何用函数取得dataType的这个属性?
      

  4.   

    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>测试页</title>
    </head><body>
    <form name=form1>
     <input name="t1" dataType="18">
     <input name="t2">
     <input value="确定" type=button onclick="return check()">
    </form>
    <script language="javascript">
    <!--
    function check()
    {
    var  t1=form1.t1.value;
    var  t2=form1.t2.value;
    var dt=form1.t1.dataType;
    alert(dt);//点确定看看
    }
    //-->
    </script></body></html>
      

  5.   

    你作为参数传过去就行了啊。
    难道你不是在input的事件里调用函数的吗?