lhgdialog: iframe页面里面的,确定,关闭、取消按钮的操作

如果你正在用lhgdialog,用他人iframe,或者 content:'url:http://www.baidu.com/a.html',的功能,刚好a.html页面有,一个关闭/取消按钮。当你模拟操作,想取消弹出框,就是点击取消按钮。那么这个取消按钮的代码怎么写呢 ?

看图:

lhgdialog: iframe页面里面的,确定,关闭、取消按钮的操作

方法一:

直接在 取消按钮上面增加onlick事件

onclick="frameElement.api.close()"

  

方法二:

在a.html页面定义变量,

var api = frameElement.api, W = api.opener;

  然后在 取消的那个按钮上写onclick

onclick="api.close();"

  

 

---------------------------------------------------------------------------

 frameElement.api.close(); //关闭弹出窗口

frameElement.api.reload(frameElement.lhgDG);//刷新父窗口

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-12-02
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-05-21
相关资源
相似解决方案