Open a new window when someone tries to copy text?

Discussion in 'HTML & Website Design' started by InternetG33k, Jan 4, 2009.

  1. #1
    Is it possible to open a new window to the file of my choice when someone tries to copy text on my website? So when they click and drag the mouse to copy some text a new window will open.
     
    InternetG33k, Jan 4, 2009 IP
  2. innovati

    innovati Peon

    Messages:
    948
    Likes Received:
    63
    Best Answers:
    1
    Trophy Points:
    0
    #2
    the only way you can accomplish this is throuh Javascript, but then you run into browser compatibility issues, and what if they have Javascript turned off in the settings (to avoid running into things like this).

    What are you actually trying to accomplish - maybe there's another approach to the problem you're trying to solve here.
     
    innovati, Jan 4, 2009 IP
  3. Lord

    Lord Active Member

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    you have to monitor the clipboard and it's not possible in all browsers and also in browsers with javascript turned off
     
    Lord, Jan 5, 2009 IP
  4. thefandango

    thefandango Active Member

    Messages:
    787
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Think the answer to your question 0 I am assuimng its can I stop people copying my content - is no. If they want to they can just scrape it using a content generator.
     
    thefandango, Jan 5, 2009 IP