• Background
    • Awards
    • Biography
    • Resume
  • Blog
    • Articles
    • Cookie Policy
    • Galleries
      • Photo Gallery
      • Video Gallery
    • Glossary
  • Contact
    • Contact
    • Social Networks
  • IT
    • Downloads
      • Windows
    • Equipment
    • Hardware
    • Software
    • Testimonial
    • Information Technology
  • Projects
    • Business Projects
    • HackBook Projects
    • Hackintosh 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 Pinterest profileMy YouTube channel

Stephan Pringle

Chief Executive Officer at Sipylus
About The Author: Stephan Pringle is an Information Technology 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 Pinterest profileMy YouTube channel

Latest posts by Stephan Pringle (see all)

  • Configuration.xml - Friday, March 12, 2021

Related posts:

  1. Dual-boot macOS and Windows
  2. Find the Hostnames
  3. File Formats for Scanned Documents
  4. Windows USB/DVD Download Tool
  5. Boot Windows 7 on an Optiplex 9010
  6. Windows Boot Manager
  7. Fake Referral Spam
  8. PC Entering Safe Mode on Boot
  9. Say Farewell to Orkut
  10. Create Install Media
  11. Microsoft Notepad
  12. 49.0665 SERVICE ERROR
  13. Ad-Free Outlook
  14. Block Highlighting of Text
  15. Block Ads in Chromecast
  16. Block Traffic from URLOpener.com
  17. Block YouTube Advertisement
  18. Block Ads in Crackle for Android
  19. Block Spam Referrers via .htaccess
  20. Block the Quora Login Popup

Comments are closed.




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

Stephan Pringle

IT Technical Support Specialist

  • Keyword Search

  • Translator

  • Topic Sponsor

I am always working to improve your experience on my website. Part of this involves using cookies to collect anonymous data for statistics and personalization. Learn more