Javascript 关闭模式帧窗口后如何重定向

Javascript 关闭模式帧窗口后如何重定向,javascript,drupal,Javascript,Drupal,我用这样的命令关闭javascript中的模式框架窗口 Drupal.modalFrameChild.triggerParentEvent('childClose',[args,statusMessages])。 但是我不知道如何将我的浏览器重定向到一个特定的路径?你可以传递window.location.href=url命令。只需使用url来定义位置 “Drupal.modalFrameChild.triggerParentEvent('childClose');window.location

我用这样的命令关闭javascript中的模式框架窗口
Drupal.modalFrameChild.triggerParentEvent('childClose',[args,statusMessages])。
但是我不知道如何将我的浏览器重定向到一个特定的路径?

你可以传递
window.location.href=url命令。只需使用url来定义位置

“Drupal.modalFrameChild.triggerParentEvent('childClose');window.location.href=url;”这对我没有帮助,模态窗口关闭但重定向没有启动