动态触发“;javascript:__doPostBack()"

dynamic triggering of "javascript:__doPostBack()"

本文关键字:doPostBack quot javascript 动态      更新时间:2023-09-26

我有一个用asp编写的网页,有一个删除特定项目的功能。

删除按钮使用"javascript:__doPostBack()"。我需要实现某种自动化来为每个项目触发这个按钮。。在perl中执行此操作的正确方法是什么?

感谢

我以前通过使用以下代码在这个过程中取得了成功:

// You'll have to change this, of course.
var deleteButton = document.getElementByid("whatever");
// Now that I have the button:
// Call the function, make sure it gets the right `this`.
__doPostBack.call(deleteButton);