The method of freely viewing HTML source code in IE modal window _javascript tips

Source: Internet
Author: User
The modal window provided by IE has a very good application in our production of Data Entry window and wizard function. However, because of some security restrictions, debugging scripts in the modal window becomes very depressing. Because the modal window does not support the selection of objects and the right-click menu, it makes it very inconvenient for us to look at the HTML code. So is there any way to solve it?

While we are making a page in a modal window, we can use the normal IE window to access its content and debug scripts. But when my page is finished and loaded into the modal window and relies on a series of input data, it becomes inconvenient for us to debug him. If we do not want to write a lot of test code in the page loaded by the modal window, we can only see the HTML code in the debugger (such as script debugger,vs.net, etc.).

In front of us, ie for modal windows, automatically shielded the selection and right-click menu function. There is an exception here, however, where the context menu can be used in the two elements of input type=text and textarea. The following figure:

Some time ago I have recommended an IE function extension: " recommend a call full source IE feature expansion ."
This extension is intended to add a "full source" feature to the page's context menu, but interestingly enough, this "full source" extension is also injected into the context menu in the diagram above. The following figure:

As a result, it is very easy for us to see the HTML source code of the page in the modal window ~ ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.