A lot of people to the author, they search the internet for interesting information, want to copy the content of the relevant home page, but some of the site's homepage can not replicate. You can only print the home page, and the printed home page has headers, footers, content, and formatting that doesn't meet your personal needs.
After careful analysis of the main page text that cannot be copied, it turns out that the JavaScript program embedded in the home page text is in mischief. When the user copies and pastes the open page, ie browser automatically invokes the Submit event. This event executes a JavaScript code named "Return False". The solution to this problem is to remove the JavaScript processing code for the event.
Take Microsoft's IE browser as an example, the specific processing process is as follows:
Click "view → source file" (when the homepage text is less than 64k bytes, automatically invoke Notepad to open; otherwise, open with WordPad), look for the <body> statement, the statement with <body oncontextmenu= "return false" Onselectstart= "return false" text= "#000000" bgcolor= "#ffffff" leftmargin= "0" topmargin= "0" marginheight= "0" > statements are similar. Remove the onselectstart= "return false" clause. The deleted source file is saved as a text file. Then rename the text file name suffix to. htm. Finally, use IE browser to open this file.
At this point, you can use the copy, paste method to save the desired content in the format required by the user (note: When copying the content of the page, please pay attention to protect the author's copyright).