开发者

Not fire button event after attribut adding window open, how to trigger both?

开发者 https://www.devze.com 2023-01-12 19:33 出处:网络
button1.attributes.add(\"onclick\", \"window.open(....)\") button_cli开发者_开发技巧ck(object sender, eventargs e) not run
button1.attributes.add("onclick", "window.open(....)")

button_cli开发者_开发技巧ck(object sender, eventargs e) not run

How to make button click trigger when opening a new window?


call like this...dont call the window.open directly

button1.attributes.add("onclick", "openwindow()")

function openwindow() {
   window.open(....);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消