使用High幻灯片,当我使用close X关闭ajax窗口时,我希望刷新父页面。我已经在页面上设置了一个按钮来执行此操作,但不能保证用户将使用该按钮。我试过几个我发现的例子,但似乎都没有用。
hs.Expander.prototype.onAfterClose = function() {
parent.window.location.reload();
}
hs.Expander.prototype.onAfterClose = function() {
if (this.a.id == 'tag-send-form') parent.window.location.reload();
}任何帮助都将不胜感激。
发布于 2013-04-02 13:59:50
将其放在High幻灯片Javascript文件(或highslide.config.js文件)之后的脚本块中:
hs.Expander.prototype.onAfterClose = function() {
window.location.reload();
};注释:这段代码需要高幻灯片的.
https://stackoverflow.com/questions/15754492
复制相似问题