Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: html ---> xhtml conversion

Hybrid View

  1. #1

    html ---> xhtml conversion

    I'm converting old, unvalidated, html pages to valid xhtml. On some pages, I'd like to keep people from copying text or downloading images. In the past I've done this by using the following in the <body> tag:

    ondragstart="return false" onselectstart="return false" oncontextmenu="return false"

    Now I discover this is not valid in xhtml. Can someone tell me a valid way to accomplish the same thing?


    Thanks in advance --------
    _||_
    db
    Don Beckett
    Reiki, Johrei, Macrobiotics: POWER TOOLS
    http://johreiki.net/

  2. #2
    Senior Member
    Join Date
    Mar 2004
    Posts
    109
    These events have never been valid HTML - they are proprietary IE events.

    Check the documentation:
    http://msdn.microsoft.com/workshop/a...electstart.asp

    See the note under Standards Information near the bottom? " There is no public standard that applies to this event." Now check something like onClick, which is valid HTML/XHTML and it will tell you that "This event is defined in HTML 4.0".

    You were never really preventing anyone who really wanted to steal your content from doing so anyway, you were just anoying some users who wanted to use the normal abilities of thier browser.

    The only way to really protect your content, is to not publish it.
    Chris Collins
    crcdesign.net

  3. #3
    Quote Originally Posted by ChrisRC
    These events have never been valid HTML - they are proprietary IE events.

    Check the documentation:
    http://msdn.microsoft.com/workshop/a...electstart.asp

    See the note under Standards Information near the bottom? " There is no public standard that applies to this event." Now check something like onClick, which is valid HTML/XHTML and it will tell you that "This event is defined in HTML 4.0".

    You were never really preventing anyone who really wanted to steal your content from doing so anyway, you were just anoying some users who wanted to use the normal abilities of thier browser.

    The only way to really protect your content, is to not publish it.
    Okay....thanks....


    _||_
    db
    Don Beckett
    Reiki, Johrei, Macrobiotics: POWER TOOLS
    http://johreiki.net/

Similar Threads

  1. XHTML or HTML 5: Which will it be?
    By Clint1 in forum HTML5 & CSS3
    Replies: 7
    Last Post: 10-22-2010, 11:06 AM
  2. HTML vs XHTML
    By subho in forum Graphics & Design Discussion Forum
    Replies: 4
    Last Post: 05-24-2006, 03:46 PM
  3. HTML, XHTML or XML
    By Troy in forum Web Programming Discussion Forum
    Replies: 3
    Last Post: 06-28-2004, 12:57 AM
  4. XHTML vs. HTML - Let's have at it...
    By littlegiant in forum Graphics & Design Discussion Forum
    Replies: 15
    Last Post: 03-09-2004, 07:18 PM
  5. xhtml/html to DVD
    By matauri in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 01-07-2004, 07:36 PM

Posting Permissions

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