• 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 Dragging of Images

Wednesday, April 9, 2003 Articles, Tips Comments Off on Block Dragging of Images

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 Highlighting of Text
  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. Fake Referral Spam
  14. Hacking a Protected Computer
  15. Screen Resolution
  16. Block YouTube Advertisement
  17. Compress Multiple Files for Emailing
  18. ECHO Commands
  19. Web Version of Track-It
  20. 49.0665 SERVICE ERROR

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