help you solve the problem that IE browser cannot view source files

Source: Internet
Author: User
As a web programmer, you may want to view the source code of the Web page often, but if it suddenly fails. The following excerpts from Zhongguancun: first categoryThe situation is that the view Source feature will fail when the browser's cache is filled. If you want to determine whether your computer is in this category, click on the Internet Options "general" tab of IE on the "Tools" menu, and then click the "Delete File" button in the "Temporary Internet Files" column. category IISituation, the View Source feature also fails when you open some special browser windows (such as a Web page written in JavaScript scripting language). If you are browsing any Web page, you cannot "view the source file", that is not the case. Category IIISituation, the View Source feature is not available when a Web page has not been fully loaded on the desktop (in this state, the Save As option on the File menu is also blocked). This is not really a problem. Fourth ClassSituation, viewing the Windows folder, if Notepad.exe is not found, will cause the view Source feature to become unusable. Fifth Classcase, if the temp (or TMP) environment variable points to a nonexistent folder, it also causes the view Source feature to be unusable. Open the Command Prompt window, type set TEMP (or set TMP), and you can view the values of these variables. Sixth class, you can also limit the validity of the command line through registry settings. First, click on the "Start" menu, type "REGEDIT" in the Run dialog box, bring up Registry Editor, and click "Hkey_current_usersoftware policiesmicrosoftinternet Explorer Restrictions, find a value named Noviewsource in the right pane, and double-click it to change the value data to 0 if the current numeric data is set to 1. Seventh ClassCase, by looking at the registry settings, you will also find that if the specified caller is incorrect, the "View Source" feature will fail. Call the Registry Editor and click "Hkey_local_machinesoftware microsoftinternet explorerview Source editoreditor Name", if the key exists, The default "value name" shown in the right pane should be the full path of the Notepad program, usually in the form of "C:windowsnotepad.exe". If the key does not exist, verify the correct location of the Notepad program, and then double-click the default key value to modify the error path. Eighth ClassSituation, Group Policy settings may also mask the View source File menu item. From the Start menu, bring up the Run dialog box and type Gpedit.msc. If a prompt appears on the desktop that the file name is incorrect, the failure of the view Source feature is not related to the setting of the Group Policy; otherwise, a Group Policy Editor window will pop up on the desktop and click User Configurationadministr-ativetemplateswindows componentsinternet Explorerbrowser ", find View menu:disable Source in the right pane menu, if the key value is set to "Enabled", change it to "Disabled". Note that the first category described above (that is, the "View Source" feature fails due to excessive internet temp files saved by IE) is the most common. If you find yourself saving a Web image, you can only save it as a BMP format, and that's probably why. If all offline content is removed, the feature is still unavailable, and you check the possibilities described later until the problem is eliminated. Attached: see source file tips, mainly for the Web page with frames: 1, to view the Web page with frames (frame) If you use a frame (frame) in some pages, or use a multiple window, then use the command on the IE menu can only get the framework of the source code, so can not view the details of web design. This is a long time to work around the method. Move the mouse pointer to the location of the non-link in the page, right-click, and select the View source file feature in the pop-up window.   To see which window's source file, point to which window the mouse pointer, and then click the right menu to operate. 2, the use of special commands in fact, the simplest way is probably to use the command.    Its format is: view-source:http://localhost:8021/, at this time, the page will not be displayed, but there will be a Display page source text box.    For a Web page with frames, you can first find the name of an interesting page in the frame, and then view the source of the page in the frame with the command. 3, the use of the above method of Web page editor is useful, but, some of the Web site secrecy to do a very comprehensive, first of all, it uses a multiple window frame page, so IE menu on the source view can not play a role, then it will be the right mouse button shielding, how to do it.    At this point we can consider using the Web page Editor to view the source of the Web page. Take IE as an example, the specific operation method is as follows: Click to see the source File frame window, using the mouse to select the part to see, if the mouse is completely blocked, you can also choose IE Menu "edit" → "Select All". Then click edit → copy. Then open the FrontPage Page Editing tool, click "File" → "new", then select "Edit" → "paste". The Web page or part of the content that you want to view is copied, and you can view the source code by using the features you see in FrontPage. Using this method is cumbersome, but it works. First of all, this approach is not restricted to all Web pages, and in addition, this method can also be targeted to view the specified content. Sometimes a Web page can be a large source file, from which to find the specified source code like a haystack.    In this way, you can easily find the source code you need. If you have trouble, we can use another method. First, the page with the frame window, "save", to remember, save the time to save as "page, all" form, save, you can in the saved pages directory to find a few frame window of the neutron window of the HTML file, and then use FrontPage and other Web editing tools willIt can be opened to view the source of the Web page.

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.