在html页面
<input type="text" value="strings" onblur="aa(this.value)"/>
<script type="text/VB"  language="vbscript">
sub aa(str1)
dim a1
a1=msgbox(str1+vbcrlf+now,MsgBoxStyle.YesNo +msgboxstyle.Exclamation,"提示")
if a1 then
msgbox("选择了true")
end if
a1=inputbox("请输入你的年龄:","输入年龄")
msgbox(a1)
end sub
</script>
</body>

解决方案 »

  1.   

    我的意思在textbox失去论点时执行aa过程,同时把textbox的值传给aa
    在aa里做的事(在学,都是根据winform瞎编的,希望高手不见怪):
    1.弹出一个提示框,然后判断用户选择了什么
    2.让用户输入一些数据,然后显示出来
      

  2.   

    //不知道是否正确理解了你的意思。
    <body>
    <script language="javascript"> 
      function test(m_Values)
      {
         if(comfirm("是否显示textbox值"))
         {
           alert("你选择了true");
           alert("textbox值为"+m_Values);
         }
         else
         {
           alert("你选择了false");
         }
      }
    </script>
    </body>
    <input type="text" value="strings" onblur="aa(this.value)"/>
      

  3.   

    谢谢,Small__Wolf(CSDN眞J⒏縞笑^_^.這嚒點嘚框框譲偶冩紒紹(︶︵︶)) 
    不过我现在希望得到vb版的一些写法