作者:手机用户2602938575 | 来源:互联网 | 2023-05-18 17:58
Iwanttodebug(examineDOM,usetheinteractiveJSconsole,etc)partofawebapplicationthatis
I want to debug (examine DOM, use the interactive JS console, etc) part of a web application that is inside a modal dialog that was created by showModalDialog()
.
我想调试(检查DOM、使用交互式JS控制台等)web应用程序的一部分,该部分位于由showModalDialog()创建的模态对话框中。
I can't find a way to use the standard IE-8 developer tools for this; The dialog doesn't have a toolbar and the usual shortcut (F12) doesn't work.
我找不到一种方法来使用标准的IE-8开发工具;对话框没有工具栏,通常的快捷方式(F12)不起作用。
Another SO question (I unfortunately have lost the link to) suggested that the only solution is to (perhaps temporarily) replace showModalDialog()
with an old-fashioned window.open()
. If this is the case, is there a straightfoward way to do it?
另一个SO问题(我不幸丢失了链接)建议,惟一的解决方案是(可能是暂时的)用老式的windows .open()替换showModalDialog()。如果是这样的话,有什么简单的办法吗?
Caveats:
警告:
- The app cares about passing dialogArguments and the return value of showModalDialog
- 这个应用程序关心的是传递对话框和showModalDialog的返回值。
- I can't use other browsers, FF+Firebug, etc.
- 我不能使用其他浏览器,FF+Firebug等等。
4 个解决方案