在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>
<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>
解决方案 »
- 怎么在新打开的窗口双击gridview,返回先前页,把选中行的值传给gridview并刷新?
- SQL里有一列默认值是0或者1 ,1是有效,0是无效,怎么在输出的时候,显示为有效或者无效 是直接在sql输出的时候就变成那个值
- 生成.net项目的时候,报错了!
- 关于DropDownList自动获取值的问题 大家都进来看看啊!!!!
- ascx控件和 page_load 谁先执行,如何让ascx先执行,再运行page_load
- 参与开发需要每句代码写注释么?
- 分页存储过程可以这样写吗
- 请问这段代码,未见任何提交信息,怎么转到另一页的?
- 谁那有模拟登陆淘宝的源码(C#),求一份
- 用路由怎么实现url的重写
- webform控件的简单问题
- 崩溃……!水晶报表服务器部署登录失败,试尽所有方法就不见效!
在aa里做的事(在学,都是根据winform瞎编的,希望高手不见怪):
1.弹出一个提示框,然后判断用户选择了什么
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)"/>
不过我现在希望得到vb版的一些写法