Home >Web Front-end >JS Tutorial >How to freely view HTML source code in IE modal window_javascript skills
The modal window provided by IE has a very good application in our production of data entry windows and Wizard functions. However, due to some security restrictions, debugging scripts in a modal window becomes very frustrating. Because the modal window does not support object selection and right-click menu, it is very inconvenient for us to view the html code. So is there any solution?
Although when we create a page in a modal window, we can use an ordinary IE window to access its content and debug scripts. But when my page is completed and loaded into a modal window and relies on a series of input data, it becomes very inconvenient for us to debug it. If we don't want to write a lot of test code in the page loaded in the modal window, we can only see the HTML code inside with the help of a debugger (such as script debugger, vs.net, etc.).
As we said before, IE automatically blocks the selection and right-click menu functions for modal windows. However, there is an exception here, that is, the context menu can be used in the two elements INPUT type=text and TEXTAREA. As shown below:
Some time ago I recommended a function extension for IE: "Recommend an IE function extension called Full Source ".
This extension function is originally to add a "Full Source" function to the context menu of the web page, but what is very interesting is that this "Full Source" extension will also be injected into the context menu in the picture above. As shown below:
In this way, it is very easy for us to view the html source code of the page in the modal window~~