IE: Cleverly Copy homepage content _ Registration Form

Source: Internet
Author: User

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).

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.