By looking at registry settings, you will also find that the "View Source" feature fails if the specified caller is incorrect.
Bring up the Registry Editor and click "hkey_local_machine/software/microsoft/internet explorer/view Source editor/editor 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:\windows\notepad.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.
Solution steps:
(1) Empty the system's temporary folder directory, right click IE Select "Properties", in the "General" tab click "Delete File" can be.
(2) If the Notepad.exe is missing or damaged, you can copy a copy from another machine and revert to the C:\WINDOWS\system32 directory. Every problem has a key that can be opened.
(3) If there is a problem with the third party text editing software, then reconnect it, or reinstall the software.
(4) If none of the above is resolved, open Registry Editor and locate [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\view Source editor\editor Name In the right pane, set the default value to the absolute path of the page source editor you want to execute the file.
View source files tips, mainly for pages with frames:
1, view the Web page with frame (frames) source
If a frame is used in some Web pages, or if multiple windows are used, the command on the IE menu will only get the source code of the frame, so the details of the web design cannot be viewed. 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 orders
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. Using Web Editor
The above method is useful, however, some of the Web site confidential work is very comprehensive, first of all, it uses a multiple window frame page, so IE menu on the Source view function can not play a role, and then it will be the right mouse button shielding, how to do? 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.