Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Turning off cut and paste

    I can't turn off the cut and past popup menu using onSelectStart. I've tried everything:

    <script>
    onSelectStart = return false;
    </script>

    document.onselectstart = new Function ("return false;");

    <body onselectstart = "return false;" >

    Am I missing something? This has worked on previous projects. My dev machine is XP Pro, sp2.

    Any help would be greatly appreciated as I have to turn off cutting and pasting on a particular page.

  • #2
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Internet Explorer

    I use both of these and it seems to work on my site:


    <html onselectstart="return false" onselect="return false">
    <div> - putting your mind in a box since 1997

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Have you checked the XP SP2 documentation to see if disabling those items is among the things websites are no longer allowed to do?
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #4
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Exclamation

    Iím on XP,SP2 and it doesnít work just fine.

    Uh, it works... by not doing anything... not selecting.

    <div> - putting your mind in a box since 1997


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •