• Background
    • Awards
    • Biography
    • Resume
  • Site
    • Blog
    • Cookie Policy
    • Galleries
      • Photo Gallery
      • Video Gallery
    • Glossary
  • Contact
    • Contact
    • Social Networks
  • IT
    • Downloads
      • Windows
    • Equipment
    • Hardware
    • Software
    • Testimonial
    • Information Technology
  • Projects
    • Business Projects
    • PC Projects
      • Hackintosh Laptop Projects
      • Hackintosh Desktop Projects
    • Website Projects
    • More Projects
  • Service Rates
    • Business Rates
    • Residential Rates

Block Highlighting of Text

Thursday, April 10, 2003 Articles, Tips Comments Off on Block Highlighting of Text

Add the following code to any .js file of your choosing and save it on your server.

document.ondragstart = function() { return false; }
document.onselectstart = function() { return false; }
document.oncontextmenu = function() { return false; }

Be sure to call upon the file on the server using the script tag in your HEAD of your web pages.

The following two tabs change content below.
  • Bio
  • Latest Posts
facebook-profile-picture
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profileMy YouTube channel

Stephan Pringle

Technology Support Specialist at Sipylus
About The Author: Stephan Pringle is an Information Technology Support Specialist. He covers hardware and software and provides tips for you to troubleshoot and repair issues on your own. In his spare time, he writes articles about the State of New York on his Hackintosh and HackBook and that has helped him to become the top contributor of the New York City section of Yahoo! Answers.
facebook-profile-picture
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profileMy YouTube channel

Latest posts by Stephan Pringle (see all)

  • Importing a PDF File to an Excel File - Saturday, August 19, 2023

Related posts:

  1. Block Dragging of Images
  2. addineyeV2.html
  3. Block Traffic from URLOpener.com
  4. Display Your Visitor’s Location
  5. Block Ads in Chromecast
  6. File Formats for Scanned Documents
  7. Block Ads in Crackle for Android
  8. Bypass Systems That Block USB Booting
  9. Cannot Start Microsoft Outlook
  10. Redirect Visitors by IP Address
  11. Web Hosting Options
  12. Block the Quora Login Popup
  13. Wall of Text Before Clover
  14. Fake Referral Spam
  15. Hacking a Protected Computer
  16. Screen Resolution
  17. Block YouTube Advertisement
  18. Compress Multiple Files for Emailing
  19. ECHO Commands
  20. Web Version of Track-It

Comments are closed.




Copyright © 1990-2023 Stephan Pringle. All rights reserved.

The information contained on this website is for your personal use only.
It may not be reproduced in whole or in part, by any means, for dissemination without our written permission.

Stephan Pringle

Technical Support Specialist

  • Keyword Search

  • Topic Sponsor