Some web site owners have some restrictions on the Web page, so that you can not see the source code, and sometimes even let you can not copy the text on the page, people very annoyed. In fact, the page source of the view there are many skills to follow, as long as you master them, you will be able to work for their own web services, the following will be introduced to all of these skills.
Q: Whether you are using Outlook or IE, click the right mouse button, in the pop-up shortcut menu will have the "View source file" This option, strange, on my computer unexpectedly can not display the mail or Web page source files , although this does not affect the normal use of the software. Excuse me, is this because I installed an upgraded version of Microsoft or a patch to prevent this feature from being automatically blocked? Is there a way to reboot this feature? It's a hassle to know that you can't view your source files, especially for Outlook users. Take me personally, every time I receive a URL link in the mail, I am accustomed to check its source file, determine its security, will click on it.
A : If you are unsure whether an e-mail message in your Inbox or a site page that you want to browse is accompanied by a virus, you can view the background HTML source code by "View source files." If the URL displayed in the source file does not match the true link, it indicates that there is a problem with the message or Web page. If the "View Source" feature is not available, it is really cumbersome. There are many reasons for this problem, which are listed below:
The first 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.
In the second category , when you open some special browser windows (such as a Web page written in JavaScript scripting language), the view Source feature also fails. If you are browsing any Web page, you cannot "view the source file", that is not the case.
In the third category , 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.
In the fourth category , viewing the Windows folder, if you cannot find Notepad.exe, will cause the view Source feature to become unusable.
In the fifth category , if the temp (or TMP) environment variable points to a nonexistent folder, it can also cause 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.
In the sixth category , 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.
In the seventh category , 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.
In the eighth category , Group Policy settings may also block 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: 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 all offline content is removed, the feature is still unavailable, and you check the possibilities described later until the problem is eliminated.
Source File View Tips
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:[url]http://x.x.x[/url], 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.
If you have trouble, we can use another method. First of all, will have a frame window of the Web page "to save", to remember, save the time to save as "web, all" form, save, you can in the saved pages directory to find a few frame window of the neutron window of the HTML file, This time with FrontPage and other Web editing tools to open it to view the source of the Web page.