以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何获取用户的按钮操作?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=133805)

--  作者:gudao123456
--  发布时间:2019/4/20 22:24:00
--  如何获取用户的按钮操作?
有以下代码:
 With wb.AddButtonGroup("","btg1",False)
            .Add("btn1", "确认提交", "button","default.htm")
            
            .Add("btn2", "重新修改", "button","dxxsxxlr.htm")
        End With
如何何判断用户是按下了那个按钮? 谢谢!

--  作者:有点色
--  发布时间:2019/4/21 19:01:00
--  

1、不是点击不同的按钮,跳转到不同的htm网页了么?

 

2、如果正常,应该这样写,如

 

.Add("btn1", "确认提交", "button").Attribute = "onclick=\'你定义的js函数()\'"


--  作者:gudao123456
--  发布时间:2019/4/21 22:58:00
--  
谢谢!