Created
October 6, 2009 12:30
-
-
Save metafeather/202969 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
I wanted a table to allow the user to select a range of rows with a Shift+Click… The problem is that, by default, the browser will select the page’s text content. This isn’t something you’ll want to do very often but it is possible to get around this: | |
Firefox can do this from your CSS: | |
table { | |
-moz-user-select: none; | |
} | |
On the table element IE needs: | |
*/ | |
the_table_node.onselectstart = function () { | |
return false; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment