以文本方式查看主题

-  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=177662)

--  作者:ycs5801
--  发布时间:2022/5/30 11:28:00
--  执行函数后跳转

 .Add("btn2", "保存", "button").Attribute = ",location=/default.htm\'"

 

 

这个想点击按钮后执行函数,然后自动跳转到主页面,可以吗?怎么修改?


--  作者:有点蓝
--  发布时间:2022/5/30 12:14:00
--  
.Add("btn2", "保存", "button").Attribute = "onclick=\'edit()\'"

function edit(){
执行其它函数或者代码
   location="default.htm";
}